Results 1 to 2 of 2
  1. #1
    PicoTTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    29

    Query to List all records with Value from Mulitpe Tables

    Hi,

    I am trying to combine data from 3 different tables into a query. The three tables are linked by the OrderNumber and have a seperate/unique ID's. I would like a query that essentially combines creates a list of the ID's for that given OrderNumber.



    Thanks for your help in advance.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    use a UNION query. It must be done in SQL mode, because you cant use GUI design mode.


    select [order#], [id], "tbl1" from table1
    union
    select [order#], [id], "tbl2" from table2
    union
    select [order#], [id], "tbl3" from table3

    then make a query on the above query to sort them.

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

Similar Threads

  1. Replies: 4
    Last Post: 03-29-2014, 01:29 AM
  2. Replies: 7
    Last Post: 07-11-2013, 10:05 AM
  3. Replies: 3
    Last Post: 01-05-2012, 12:04 PM
  4. Replies: 4
    Last Post: 08-01-2011, 04:24 PM
  5. Replies: 3
    Last Post: 03-25-2010, 12:31 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