Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

identify upper or lower case in a formula 1

Status
Not open for further replies.

VE

Technical User
Oct 25, 2000
220
0
0
US

Hi,

In my data "C" means something different from "c". I need to write a formula that will identify the case of the letter.

I have tried
if {field1} = lowercase("c") then {field2} else ""

and I have tried
if {field1} = chr(99) then {field2} else ""

I unchecked the box under options for case insensitive

are there any other ways I can do this?

Crystal 2011 and a DB2 database

thank you
VE
 
I got it to work like this:

Code:
IF    Instr({field1},CHR(99)) > 0 
THEN  {field2} 
ELSE  ""

Hope this helps.

Cheers
Pete

 

That seems to be getting me there. I think if I also check the length I can filter out the fields that have small c as part of the field and I'm set. Thank you very much!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top