M
Marilyn
Hi,
I'm trying to modify a label report created by Access
label wizard so that when there is no company name in a
record, it won't print a blank line. I tried using the
code recommended in the online access help section, but
it didn't work. Thinks there's too many ) marks?
Here's the code:
=IIf(IsNull([FirstName1]),"",[FirstName1] & " ") & _
IIf(IsNull([LastName1]),"",[LastName1]& Chr(13)& Chr(10))
& _
IIf(IsNull([FirstName2),"",[FirstName2] & " ") & _
IIf(IsNull([LastName2]),"",[LastName2]& Chr(13)& Chr(10))
& _
IIf(IsNull([ADDRESS]),"",[ADDRESS] & Chr& Chr(10)) & _
IIf(IsNull([CITY]),"",[CITY] & ", ") & _
IIf(IsNull([REGION]) ,"",[REGION] & " ") & _
IIf(IsNull([PostalCode]),"",[PostalCode])
any ideas on what could be wrong?
-Marilyn
I'm trying to modify a label report created by Access
label wizard so that when there is no company name in a
record, it won't print a blank line. I tried using the
code recommended in the online access help section, but
it didn't work. Thinks there's too many ) marks?
Here's the code:
=IIf(IsNull([FirstName1]),"",[FirstName1] & " ") & _
IIf(IsNull([LastName1]),"",[LastName1]& Chr(13)& Chr(10))
& _
IIf(IsNull([FirstName2),"",[FirstName2] & " ") & _
IIf(IsNull([LastName2]),"",[LastName2]& Chr(13)& Chr(10))
& _
IIf(IsNull([ADDRESS]),"",[ADDRESS] & Chr& Chr(10)) & _
IIf(IsNull([CITY]),"",[CITY] & ", ") & _
IIf(IsNull([REGION]) ,"",[REGION] & " ") & _
IIf(IsNull([PostalCode]),"",[PostalCode])
any ideas on what could be wrong?
-Marilyn