P
Patrick McGuire
I have 5 fields: StreetAddress1, StreetAddress2, City,
State, PostalCode in my AccessXP database and want to put
these together in an address box on a report. I want it
to look good regardless of the presence or absence of
data in the respective fields. I have tried to use a
textbox whose ControlSource is set to the following:
=Nz([StreetAddress1] & (chr(10)+[StreetAddress2]) & chr
(10) & (([City]+", ") & [StateOrProvince]) & (" " +
[PostalCode]),"Not Available")
But when none of the fields contain data this results in
2 unprintable characters and a ", " (so it doesn't appear
to be propagating the nulls), and even when data are
present, it does not go to the next line when it should.
What am I doing wrong?
Thanks
Pat
State, PostalCode in my AccessXP database and want to put
these together in an address box on a report. I want it
to look good regardless of the presence or absence of
data in the respective fields. I have tried to use a
textbox whose ControlSource is set to the following:
=Nz([StreetAddress1] & (chr(10)+[StreetAddress2]) & chr
(10) & (([City]+", ") & [StateOrProvince]) & (" " +
[PostalCode]),"Not Available")
But when none of the fields contain data this results in
2 unprintable characters and a ", " (so it doesn't appear
to be propagating the nulls), and even when data are
present, it does not go to the next line when it should.
What am I doing wrong?
Thanks
Pat