Solved

UNION ALL

Posted on 2014-12-22
2
175 Views
Last Modified: 2014-12-22
How do I get the results from a UNION ALL query into a new table?

Tried  "INTO "TableName"", works with regular query but not with UNION ALL
0
Comment
Question by:DatabaseDek
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40513798
you have to either save the union query  and use it to create a make table query or do this

Select A.* Into Tablename
From
(select f1,f2 from tablex
 union all
select f1,f2 from tableY
) As A
0
 

Author Closing Comment

by:DatabaseDek
ID: 40513815
Couldn't get much simpler thank that! My thanks Derek
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

809 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