Solved

Problem Printing Envelopes in Access 2007

Posted on 2010-09-07
3
422 Views
Last Modified: 2012-06-27
I am trying to print envelopes in Access 2007 using a report that has its page properties set to be the same size as  a #10 envelope.  This is working fine except for the fact that the fields are not lining up very well.  Because some names are much longer than others, and some addresses have an additional second line with a suite number for example, I can't seem to get everything formatted in such a way that it looks normal.


I would like to have the addresses look like this:


John Doe
123 Anywhere Street
Suite 100
Nashville, TN 12345



Instead it looks like:


John          Doe
123    Anywhere       Street
Suite   100
Nashville,       TN      12345


Any help would be appreciated.
0
Comment
Question by:apsonline
3 Comments
 
LVL 7

Accepted Solution

by:
shaydie earned 125 total points
ID: 33622754
Use unbound text boxes on your report and add multiple fields together into one text box something like this:
=[FirsName] & " " & [LastName]
=[AddressPart1] & " " & [AddressPart2]
=[City] & ", " & [State] & " " & [ZipCode]

set the control source something like that replacing the actual field names from your data.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 33623202
or you could merge the fields in the underlying query.

SELECT [FirstName] & " " & [LastName] as FullName,
             [AddressNumber] & " " & [StreetName] & " " & [StreetType] & chr$(10) & chr$(13) & [AddressPart2] as Address,
             [City] & ", " & [State] & "  " & [Zip] as CityStateZip
FROM yourTable

Using this method, you only need three controls (txtFullName, txtAddress, txtCityStateZip).  Set the CanGrow property of txtAddress to Yes.  Using chr$(10) & chr$(13) should provide for wrapping the second part of the address to a second line.
0
 

Author Closing Comment

by:apsonline
ID: 33626413
This worked great; thank you
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
type of query 11 41
How to run a VBS file in a MS access macro? 2 28
Why can't I update my query in datasheet view (or my form). 6 20
IIF help, YN field 7 21
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question