UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Line Breaks within a text box on a report?    
 
   
chuckie
post Aug 6 2005, 02:28 PM
Post #1

UtterAccess Addict
Posts: 242
From: Long Island, New York



I'm using access to print a letter to patrons. Not all of them have a company they are associated with so I have the following unbound text box which will print a company if there is one, but not leave a blank space if there is not:

=([First_Name]+" ") & ([Last_Name]+" ") & ([Company]+" ") & [Street] & [City] & ", " & [State] & " " & IIf(Len([zip])=5,Format([zip],"00000"),Format([zip],"00000-0000"))

My problem is that it prints everything out on one continuous line and I want to add in line breaks to split it up.

Can this be done? I've tried messing around with "vbcrlf" which I found searching on here, but I can't make it work.

I can resort to putting everything on its own line but then if there is no company for that person there will be a blank line between their name and address which would look stupid.

Any suggestions?
Go to the top of the page
 
+

Posts in this topic


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 03:16 PM