Solved

Union Querry

Posted on 2014-01-17
2
291 Views
Last Modified: 2014-01-17
I am not very familiar with a union query (I do most my query in the design section).

I have two query I want to connect is a union. Is there a way to include all the fields, or do I have to write each one out? Maybe using a *?

Thanks!
0
Comment
Question by:cansevin
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39789692
as long as the number of fields(columns) are the same you will be ok.

select * from t1
union all
select * from t2
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39789731
as long as the number (AND DATA TYPES) of the fields are the same
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

831 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