debsamguru
Member
- Local time
- Today, 16:48
- Joined
- Oct 24, 2010
- Messages
- 82
I'm trying to concatenate address lines on a report so that empty lines don't show up. I've searched the forum and found a thread that recommends doing this:
I have put this code in the Control Source of the first Text Box and removed all of the other text boxes and made sure that Can Grow/Can Shrink are set to 'Yes'.
However, all I get is #Type! The Text Format is set to Plain Text and all of the fields are defined as Short Text fields.
Does anyone have any ideas please?
Code:
=[InvoiceAddr1]+Chr(13) & Chr(10)+[InvoiceAddr2]+Chr(13) & Chr(10)+[InvoiceAddr3]+Chr(13) & Chr(10)+[InvoiceAddr4]+Chr(13) & Chr(10)+[InvoiceAddr5]+Chr(13) & Chr(10)+[InvoicePostcode]+Chr(13) & Chr(10)+[InvoiceCountry]
I have put this code in the Control Source of the first Text Box and removed all of the other text boxes and made sure that Can Grow/Can Shrink are set to 'Yes'.
However, all I get is #Type! The Text Format is set to Plain Text and all of the fields are defined as Short Text fields.
Does anyone have any ideas please?