union queries
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Union Queries

Union Queries

resolvedResolved · Urgent Priority · Version 2003

replyReply Thu 20 Aug 2009, 14:00Delegate Vishal said...

Union Queries

Hi, I would like to merge two columns in two seperate tables which are linked together by a common ID ref number. The columns have the same title.

Can you please explain how to do this.

There is a query already set up in Access which does this for other fields, but this has been created using SQL adn I do not understand it. If I click on the design view to review the query, all I get is SQL code.

For upcoming training course dates see: Pricing & availability

replyReply Thu 20 Aug 2009, 15:56Trainer Stephen said...

RE: Union Queries

Hi Vishal

Thank you for your question

Union queries can only be written in SQL as Access's query builder will not create Union Queries. All I can suggest is changing the field names in the existing query so that they reflect the data you want to merge.
Alternatively, if you like, you could copy the SQL into a post along with and example of the names of the new fields and tables and I can rewrite the SQL for you

Regards

Stephen

 

Please browse our web site to find out more about
access advanced courses and other Microsoft training courses.

Access tip:

How To Find All Overdue Accounts?

To find overdue accounts create a filter that compares today's date with the Invoice Date in the table. To do this:

1. Open the Query in Design View
2. Select the field for the filter and in the criteria row enter:

<Date()

This filter returns records where the Invoice Date is before today's date.

This filter can be manipulated if, for instance, Invoices are due 15 days after the Invoice Date. For this the filter would be:

<Date()-15

This filter returns records where the Invoice Date is 15 days before today's date.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard