active-technologies.com Computer Repair Network Management and Maintenance Summerville SC (843) 225-5648               
  • Login
  • Register
  • Home
  • About Us
  • Projects
  • Legalease
  • Green Policy
  • Recommendations
  • CIM Manufacturing Demo
  • Contact Us

You are here

Home | Access

Services

  • What We Do
  • Computer Repair
  • Network Service
  • Backup System
  • Network Assessment
  • Disaster Recovery
  • Data Recovery
  • Technology Planning
  • Technology Partner
  • AntiVirus
  • Web Page Design
  • Mobile Web
  • Web Hosting
  • Identity Management
  • Search Optimization
  • Content Manager

Navigation

  • Forums
  • Recent content

Scan 2 Call

Access: Union Query Example - Create Mail List From Two Different Tables

Submitted by gma on Mon, 11/07/2011 - 03:37

If you need to send the same letter to people listed in two different database tables, you don't have to create two different mailing lists. You can use Microsoft Access's Union query to combine the two tables into one list.

Example:

suppose you want to send the same letter to all your company accounts and the interns working on those accounts. The Customer database contains the name of each company in the Name field. The Intern database contains the name of each Intern in two fields, Last Name and First Name. You want the results of the Union query to combine the Name fields from both databases into one Mailing Name field. The Intern table's Mailing Name field is a combination of the Last Name and First Name fields and the Customer table's Mailing Name field comes from the Name field, renamed Mailing Name.

And this is how we do it::

1. In the Database window, click Queries under Objects and then click New.

2. Double-click the Design View.

3. Click Close.

4. Go to Query | SQL Specific | Union.

5. Enter the following code at the prompt:

SELECT [First Name] & " " & [Last Name] As [Mailing Name], [Address], [City], 

[State], [Zip Code]

FROM Intern

UNION SELECT [Name] As [Mailing Name], [Address], [City], [State], [Zip
  Code]

FROM Customer;

6. Click Run on the Query toolbar.

The Union query results contain both the interns' and companies' names and addresses.

If you require additional information or assistance with this item, please give us a call.

‹ Access: Select Query up Access: Use Custom Views to Enhance Presentation ›
  • Printer-friendly version

No comments available.

Add new comment

More information about text formats

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
Are you Human or a Computer Program???
Image CAPTCHA
Enter the characters shown in the image.

News

  • News

References

  • Outlook
  • Excel
  • Word
  • Access
  • General
  • Open Source
  • Smart Phones
  • Security
  • ShareWare
  • webERP
  • Site map

Search form


vcard

Copyright © 2004-2012 Active Technologies, LLC
Your Computer Network & Internet Services provider
(Powered by designhostseo.com)