Guest_imported
New member
- Jan 1, 1970
- 0
I would like to create a function in crystall report which would check if the field in Database is NULL or "" and then replace it with " -- " in report.
I don't want the formula to be inserted everywhere like
if isNull({tablename.Fieldname})=true or tablename.fieldname="" then
" -- "
I want that before printing the record it should Check for Null or blank
Function CheckNull(str1)
if isNull(str1)=True then
CheckNull=" -- "
else
CheckNull=str1
End Function
How do I do that ??????
In general HOW DO I CREATE AND CALL FUNCTIONS IN REPORTS
Thanks
Anil
I don't want the formula to be inserted everywhere like
if isNull({tablename.Fieldname})=true or tablename.fieldname="" then
" -- "
I want that before printing the record it should Check for Null or blank
Function CheckNull(str1)
if isNull(str1)=True then
CheckNull=" -- "
else
CheckNull=str1
End Function
How do I do that ??????
In general HOW DO I CREATE AND CALL FUNCTIONS IN REPORTS
Thanks
Anil