I need help
Is there a way to set a formula to NULL? I'm writting a formula called "city to use" that checks the address type and if it is a home address I want to set it to the city, else I want to set it to NULL.
thanks for any help
thats what i had but the problem is that some values are already null, and i want to make the formula output null to match so i can do 1 simple suppression on the details (isNull {city to use}). Since NULL and "" are not the same thing this doesn't work.
Is there any way to so this? Any more help dealing with NULL will be greatly appreciated.
Thanks
The way to force a NULL result in a CR formula is:
1) Write another formula called {@NULL} that contains any string.
2) Refer to this formula in your real formula:
if {table.addresstype} = "home address"
then {table.address}
else {@NULL}
3) Go back into the @NULL formula and delete the string, saving it empty.
This generates a null value as your else.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Tips and Tricks / Guide to Crystal in VB
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.