Results 1 to 2 of 2
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Union Query


    I know you can do this, but for the life of me can't recall how...
    I need to run one query in my current database, and another query in a different database.

    How can I use a UNION ALL to do this?

  2. #2
    drexasaurus's Avatar
    drexasaurus is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Santa Ana, CA
    Posts
    60
    Are you trying to combine the results of the queries? The easiest way I can think of would be to create a linked table to one of the outside databases, THEN Union them together. You can also refer to the filename of another Access database in your query, but I haven't tested it out myself. Tried to find the details for you, and this was the first thread I found: http://bytes.com/topic/access/answer...ccess-database

    The example from the link that demonstrates what I'm talking about is this:

    1. SELECT [RemoteQueryname].* FROM [RemoteQueryname] IN 'C:\RemoteDatabase.mdb'
    Last edited by drexasaurus; 02-04-2014 at 06:36 PM. Reason: Missing end quote

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 10-22-2012, 07:43 PM
  2. Union and Sum all in one query
    By joewilly1 in forum Queries
    Replies: 1
    Last Post: 10-12-2012, 08:18 AM
  3. Help with a Union Query
    By Bear in forum Queries
    Replies: 12
    Last Post: 08-14-2011, 05:12 PM
  4. Union Query
    By jlclark4 in forum Queries
    Replies: 3
    Last Post: 02-25-2011, 08:21 PM
  5. Need help with a Union Query
    By jdowdy in forum Access
    Replies: 1
    Last Post: 10-13-2009, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums