Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Customer Addresses

Status
Not open for further replies.

sgk17

Technical User
Nov 8, 2002
68
US
I am working on a customer invoice report that needs to print out the billing and shipping address as part of the report. Each address contains 8 fields: Name, Attention, Address1, Address2, City, State, Zip, & Country.
I am pulling each field from the database. Most of the time the Attention and Address2 fields are blank. Is there a nice way to display these addresses without leaving a blank line when the fields are empty? Here's an example of what I'm getting:

BILL TO: Joe Mama (Name)
(Attention)
1558 N American Way (Address1)
(Address2)
Payson, CA 86214 USA
If the Attention field is blank I would like it to show as:

BILL TO: Joe Mama
1558 N American Way
Payson, CA 86214 USA

Thanks for the help.
 
Drop them in a text field the way you want them to look and then choose the option to suppress blank lines ( i think) should make it look the way you want it!

DLC
 
Suppress Embedded Field Blank Lines Option is what you want....sorry for the 1st hasty reply

dlc
 
Thank you. That did work like I wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top