ACC: Creating Reports to Mail Merge Microsoft Access DataID: Q98798
|
Novice: Requires knowledge of the user interface on single-user computers.
To use a mail merge with Microsoft Access data, you can export or copy your
data to a word processor, or in Microsoft Access 2.0, 7.0 and 97, you can
click the Merge It button on the toolbar. However, you can also create a
Microsoft Access report to generate mail-merge documents. This article
shows a technique that uses a Microsoft Access report as the main document
in a mail merge.
The following is an example of a business letter that you can create as a
Microsoft Access report. All values in angle brackets (<>) are items that
can be filled in during the mail merge:
KB Advertising Agency
<February 5th, 1993>
<John Doe>
<123 E. Main Street>
<Middle Town, OH 44044>
Dear <Mr. Doe>,
We are pleased to announce our new line of office furniture. As a
<valued> customer, you are entitled to a <10>% discount off our
catalog prices.
Call us today toll-free at (800) 555-1212 and receive a free
full-color catalog detailing all our top-of-the-line office products.
Sincerely,
J. Grant
Manager, Office Products
Table: Customer
----------------------
Field Name: Salutation
Data Type: Text
Field Name: First Name
Data Type: Text
Field Name: Last Name
Data Type: Text
Field Name: Address
Data Type: Text
Field Name: City
Data Type: Text
Field Name: State
Data Type: Text
Field Name: ZIP
Data Type: Text
Field Name: Customer Type
Data Type: Text
Field Name: Discount Pct
Data Type: Number
Salu- First Last Cust Disc
tation Name Name Address City St ZIP Type Pct
-----------------------------------------------------------------
Mr. John Doe 123 Main Middleton OH 44044 Valued 10
Mrs. Sally White 52A Elm Florence KY 45123 Special 5
Dr. Fred Weiss Box 456 Camden SC 29332 Super 25
Section: Detail
---------------------------
ForceNewPage: After Section
CanGrow: Yes
Label:
Name: Company Label
Caption: KB Advertising Agency
Text Box:
Name: Today's Date
ControlSource: =Date()
Format: Long Date
Text Box:
Name: Name Line
ControlSource: =[First Name] & " " & [Last Name]
Text Box:
Name: Address Line
ControlSource: =[Address]
Text Box:
Name: CSZ Line
ControlSource: =[City] & ", " & [State] & " " & [ZIP]
Text Box:
Name: Salutation Line
ControlSource: ="Dear "&[Salutation]&" "&[Last Name]&","
Text Box:
Name: Para 1
ControlSource: ="We are pleased to announce our new line of
office furniture. As a " & [Customer Type] &
"customer, you are entitled to a " & [Discount
Pct] & "% discount off our catalog prices."
CanGrow: Yes
Label:
Name: Rest of Letter
Caption: Call us today toll-free at (800) 555-1212 and receive
a free full-color catalog detailing all our
top-of-the-line office products.
Label:
Name: Closing
Caption: Sincerely,
Label:
Name: Grant
Caption: J. Grant
Label:
Name: Title
Caption: Manager, Office Products
Label:
Name: Closing
Caption: Sincerely, <press CTRL+ENTER>
<press CTRL+ENTER>
<press CTRL+ENTER>
J. Grant <press CTRL+ENTER>
Manager, Office Products
Additional query words: mailmerge page header
Keywords : RptOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 23, 1999