Hi,
I am trying to create a report in Access for the first time, and am hitting into this problem:
I have a field called Address2 which are often null (or no value). So, in the report I want to print it if it has a value and skip if it's empty/null. I tried the following expression:
But this expression gives me an error. The expression isNull([Address2]) always returns false (even for those Address2 that are empty), and when I tried, printing the field gives me an error.
I have played around with IsEmpty, IsObject, and IsMissing, but nothing works.
Could anyone spot the problem? Many thanks in advance.
Regards,
Min
I am trying to create a report in Access for the first time, and am hitting into this problem:
I have a field called Address2 which are often null (or no value). So, in the report I want to print it if it has a value and skip if it's empty/null. I tried the following expression:
Code:
=[Address1] & Chr(13) & Chr(10)
& iif(isNull([Address2]),"", [Address2] & Chr(13) & Chr(10))
& [City] & ", " & [State] & " " & [ZipCode]
But this expression gives me an error. The expression isNull([Address2]) always returns false (even for those Address2 that are empty), and when I tried, printing the field gives me an error.
I have played around with IsEmpty, IsObject, and IsMissing, but nothing works.
Could anyone spot the problem? Many thanks in advance.
Regards,
Min