|
|
Question : Crystal is picking up an empty field
|
|
I have Crystal 8.5 running reports off of an Access database, sometimes one of my fields is empty and for some reason Crystal is not recognizing it as empty or null. The result I am getting is empty fields. This is some of the codes I have written to try and get it to work:
IIF ({CCRF_TO_BE_PRINTED_IN_HOUSE.street2} = " " OR len({CCRF_TO_BE_PRINTED_IN_HOUSE.street2})=0,{CCRF_TO_BE_PRINTED_IN_HOUSE.city},{CCRF_TO_BE_PRINTED_IN_HOUSE.street2} )
This one works but only in the last version of Crystal:
if TrimLeft(TrimRight({CCRF_TO_BE_PRINTED_IN_HOUSE.street2}))<>"" then {CCRF_TO_BE_PRINTED_IN_HOUSE.street2}
Help, Thanks
H
|
Answer : Crystal is picking up an empty field
|
|
Use IsNull function for Crystal to recognize Empty fields. Example: If IsNull(ColumnName)=True then...
|
|
|
|
|