I am using Windows 2000 and Crystal Reports 8. How do you determine a database field with all CAPITAL letters?? Also--trying to determine a field that is either null or a field = 0?? Any ideas??
A numerical field with a value of either null or 0 will be treated differently. Refer to null fields as IsNull({Field}) and zero fields as {Field} = 0.
For string fields, when searching for nulls, use both IsNull({Field}) and {Field} = ''.
Crystal is way too handy about "making up for your mistakes" and assumes if you say something is <> to "word" that you mean <> "word" and <> "WORD" and <> "WoRd" etc.
To get around this use the strcmp funtion along with UpperCase as in:
strcmp(UpperCase({Field}),{Field},0) will return 0 if they are identical (including case) and -1 or 1 if they are not.
Naith--
Thanks for the help on the uppercase!! I checked on turning off the Case Insensitive SQL Data (again), and it did take care of the problem.
Thanks again!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.