How to string 4 text field

G

Guest

I have a database with names and 4 fileds for the phisical address and 4
fields for the postal address. Some of the address fields may be empty or
not. I want to create a report with the phisical and postal adress side by
side, where the address 'floats' and does'nt show the empty fields. Like
this:

Joe Doe 123 Street Name PO Box 7890
Urb. Good View City-Name, ST 12345
City-Name, ST 12345

Jane Smith 456 Street-Name
City-Name, ST 23456
 
G

Guest

In the record source query for your report you can create new fields for the
physical address and the postal address. Use these as the "control source"
for two text boxes you will place side by side on your report.

First the physiclal address field:
phyAddress:[name] & chr(13) & [phyAddress1] & chr(13) & [city] & ", " &
[phyState] & " " & [phyzip]

The postal address will be something like this:
postAddress:[name] & chr(13) & [postAddress1] & chr(13) & [city] & ", " &
[postState] & " " & [postzip]

Note: chr(13) moves to the next line.

I hope this helps
 

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