If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Formula field not reading correct case value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-11, 15:28
Lolo70 Lolo70 is offline
Registered User
 
Join Date: Nov 2011
Posts: 1
Red face Formula field not reading correct case value

I have forumula field which is supposed to return a string. I have if/else statement set as below:
=========================================
if ({Customer.ordernum} startswith "V") then
"Y"
else
"N"
==========================================

The problem is that it is returning Y even if ordernum starts with a lower case v.
Example:
order 1= v12345 -> FORUMULA FIELD incorrectly returns "Y"
order 2 = V0001 -> FORUMULA FIELD correctly returns "Y"
order 3 = P12546-> FORUMULA FIELD correctly returns "N"

I have tried using uppercase, lowercase, chrw, mid functions and nothing has worked so far. Is there a setting in crystal that I can fix this issue? What am I doing wrong. Any help is appreciated!
Thx,
Lolo 70
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On