address in header

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am struggling with Access 2007! Firstly, I am trying to form an invoice.
Whenever I try to type the address in the header, it will not let me put in a
'Return' to add subsequent lines.
Similarly, I have set up an expression in the body of the form to lay out an
address, but it is all one one line. How do I put a 'Return' in an expression?
 
In Access 2000,
In the "other" tab of the properties there is one called "enter key
behaviour" so you can put text on different lines (that is what your message
is implying)
 
In your entry, I would suggest separate fields for each element...

Address1
Address2
City
State
ZIP



To build a properly constructed address in your reports:

= "This is line 1." & chr(13) & chr(10) & "This is line 2."

= "This is line 1." & vbcrlf & "This is line 2."
 
Note also that if you don't want to skip a line when a field is blank
(addresses without an address2) you can do something like this...

= [Address1] & chr(13) & chr(10) & ([Address2] + chr(13) + chr(10)) & [City]
& ", " & [State] & " " & [ZIP]





The "+" will only include the items if they are not blank.
 
I will try that, but how do I get several (fixed) lines in header ie. my
name, address, telephone number etc?

RBear3 said:
Note also that if you don't want to skip a line when a field is blank
(addresses without an address2) you can do something like this...

= [Address1] & chr(13) & chr(10) & ([Address2] + chr(13) + chr(10)) & [City]
& ", " & [State] & " " & [ZIP]





The "+" will only include the items if they are not blank.








--
Hope that helps!

RBear3
..

The bard said:
I am struggling with Access 2007! Firstly, I am trying to form an invoice.
Whenever I try to type the address in the header, it will not let me put
in a
'Return' to add subsequent lines.
Similarly, I have set up an expression in the body of the form to lay out
an
address, but it is all one one line. How do I put a 'Return' in an
expression?
 

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

2910 line of info 13
Sub Total a Sub Table 7
Form with preset tasks 0
Controlling a list box population based on combo boxes 1
Access Skip address field if previous field is blank 2
Repeat Headers 3
Outlook Creating an Outlook form 2
form headers 2

Back
Top