Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: select strings with mixed or lower case values Post Reply Post New Topic
Author Message
jamarengo
Newbie
Newbie
Avatar

Joined: 07 May 2012
Location: United States
Online Status: Offline
Posts: 2
Quote jamarengo Replybullet Topic: select strings with mixed or lower case values
    Posted: 07 May 2012 at 7:44am
We want to clean up a database where all records should have been entered as uppercase.  Many were entered as lower case and others were entered with mixed case.  I can't find a formula or filter that will help me locate records in this state.
 
Thanks for any help you can provide.
 
Regards,
JAM
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 07 May 2012 at 8:22am
There is a round about way, but is should work.  This is just an example since I do not know what the field name is or what you want to do with the results.

if strcmp(toupper({field_in_question}),{field_in_question},0) <> 0 then Problem
else Good


Edited by kevlray - 07 May 2012 at 8:23am
IP IP Logged
jamarengo
Newbie
Newbie
Avatar

Joined: 07 May 2012
Location: United States
Online Status: Offline
Posts: 2
Quote jamarengo Replybullet Posted: 07 May 2012 at 8:50am
I tried putting this into a formula definition but Crystal didn't like the toupper.  Is this a parameter or subfunction or something I need to define?
Regards,
JAM
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 16 May 2012 at 12:03pm
Opps, too many languages over the years.  Try UpperCase or UCase.  It is a function.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.