Carriage Return Challenge!!!

AndyShuter

Registered User.
Local time
Today, 16:09
Joined
Mar 3, 2003
Messages
151
In a control box on a report I have the following

=[HirerCurrAddress1] & Chr(13) & Chr(10) & [HirerCurrAddress2] & Chr(13) & Chr(10) & [HirerCurrTown] & Chr(13) & Chr(10) & [HirerCurrPostcode]

This is gret provided that every field has a value as I get the following on my letter

147 Main Street
Clifton
Bristol
BS24 1AW

However, if I get an address where all fields are not required, I get

32 The Square

Bath
BA1 1QR

Just wondered if there was a way of automatically nudging up the text to make the address look nice & neat?

Thanks
 
=[HirerCurrAddress1] & Iif(IsNull([HirerCurrAddress2])," ",& Chr(13) & Chr(10) & [HirerCurrAddress2] etc.
 

Users who are viewing this thread

Back
Top Bottom