Fields containing null values...

G

Guest

How do I omit fields containing null values from a report? I believe there
should be an expression but can't seem to find it. I'm trying to run a
report that lists several addresses. The street addresses consist of 2
fields (Address 01 and Address 02). Where Address 02 does not contain any
information, it currently inserts a blank field. I'd like the blank field
omitted on the final report so that it would go from Address 01 to City,
State etc.
 
D

Duane Hookom

Set the control to Can Shrink: Yes. This won't work if you have controls to
the left or right of the text box.
 
G

Guest

Use conditional concatenation in the query underlying the report -

SELECT ... , Address01 & " " & IIf(Not IsNull(Address02), Address02 & " ") &
City AS strAddress, ... FROM tblMyTableOfAddresses

Then you just use strAddress in a text box in your report.

Cheers ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top