Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / July 2005

Tip: Looking for answers? Try searching our database.

[newbie] Transferring data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Schmitz - 03 Jul 2005 19:35 GMT
Hi,

I've got the following problem:

I've got two queries that both have (when being executed) one column, like
this:

Query1 -> Column: Articles1
Query2 -> Column: Articles2

Now, unfortunately, I cannot rename the column headings (Articles1,
Articles2) - which gives me some problems in SQL.
Basically, I need to have the result of both queries in one table AND in ONE
column, like this:

Query1:                             Query2:                       ResultTable

Articles1                            Articles2                      
AnyColumnHeading
-----------                          -----------                    
-----------
a                                      d                                 a
b                                      e                                 b
c                                      f                                  c
                                                                         d
                                                                         e
                                                                         f

Is there any SQL statement that gives me result above?

Thanks a lot
Peter
Ken Snell [MVP] - 03 Jul 2005 19:52 GMT
You need a Union query:

SELECT * FROM Query1
UNION ALL
SELECT * FROM Query2;

Signature

       Ken Snell
<MS ACCESS MVP>

> Hi,
>
[quoted text clipped - 31 lines]
> Thanks a lot
> Peter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.