Text Box in a Report

G

Guest

This is my control source for a text box:

=([Company]) & Chr(13) & Chr(10) & ([BizShipAddr]) & Chr(13) & Chr(10) &
Trim([BizshipCity]) & ", " & ([Bizshipstate]) & " " & ([BizshipZip])

Programmically is it possible, if there is NO company name, not to put a
blank line there? I have another text box above it with Attn: ContactName
and if there is no company name, there is a blank line between that & the
street address. I kept them in seperate boxes as Attn line is bold red.

Thanks
Curtis
 
F

fredg

This is my control source for a text box:

=([Company]) & Chr(13) & Chr(10) & ([BizShipAddr]) & Chr(13) & Chr(10) &
Trim([BizshipCity]) & ", " & ([Bizshipstate]) & " " & ([BizshipZip])

Programmically is it possible, if there is NO company name, not to put a
blank line there? I have another text box above it with Attn: ContactName
and if there is no company name, there is a blank line between that & the
street address. I kept them in seperate boxes as Attn line is bold red.

Thanks
Curtis

Why do you have all those extra sets of parenthesis?

Use the + instead of the & in the first part of the expression, and
place the parenthesis as I have them.

= ([Company] + (Chr(13) & Chr(10))) & [BizShipAddr] & Chr(13) &
Chr(10) & Trim([BizshipCity]) & ", " & [Bizshipstate] & " " &
[BizshipZip]
 

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

Similar Threads

Address box with IIf Statement 7
Text box incomplete in GroupFooter 0
Labels 4
Closing Spaces on Report 1
Alignment 7
Text Box Line Control? 2
Envelopes ... need all caps 2
P.O. Box and concatenation hiccup 2

Top