Results 1 to 4 of 4
  1. #1
    templeowls is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    305

    Use query to search four tables

    I have four databases that are full of incidents over a given year (2015-2019). The tables have the exact same columns. I've successfully made a parameter query for the 2019 table that lets me pull entries in the table that match the employee ID field, which is so useful. I was wondering if its possible to have this query search all four databases in the same manner.



    Any walk through online seems to explain how to pull different data sets from various tables. I need the same data from each table; just based on the ID parameter I type in.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If all four tables are structured exactly the same, you can create a Union query to combine them all in to one big query.
    See here for how to do that: http://access-excel.tips/union-and-u...-access-query/

    Then you can simply just query this one, big query.

  3. #3
    templeowls is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    305
    That makes sense. I'll try that. Thanks!!

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You are welcome.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-30-2016, 03:41 AM
  2. Replies: 1
    Last Post: 03-26-2015, 11:08 AM
  3. Replies: 1
    Last Post: 03-07-2013, 03:21 PM
  4. Replies: 11
    Last Post: 11-09-2012, 08:17 AM
  5. Query To search Two Tables
    By stu_C in forum Queries
    Replies: 5
    Last Post: 03-25-2010, 11:50 AM

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