+ Reply to Thread
Results 1 to 2 of 2

How to query with multiple tables, filtered by value in 2nd table

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Colroado
    MS-Off Ver
    Excel 2003
    Posts
    4

    How to query with multiple tables, filtered by value in 2nd table

    I have a feeling that the solution I'm looking for is super simple. I am, however, a total noob to Access and queries, and have only been taught how to do a couple simple things in Access for my employer.

    I'm looking to perform a query with data from two tables. I can run the query, and all the data combined from both tables pops up. That's all well and good, but now I want the query to filter the data based on an identifier that I've incorporated into a 3rd table.

    Details: I have water sample data that I need to organize. Table 1 has the lab results based on the sample ID, and the Table 2 links the Sample ID to a location name and sample date. I have a 3rd table that is a list of all the compounds that we test for. In this third table, I've added a column that identifies certain compounds as metals. I can't manually ID all of the compounds in Table 1 because there are thousands of records, so I want the query to filter those records and only give me the data of compounds that I have listed as "metals" in Table 3. Make sense? Again, I'm sure it's a quick solution, but I'm pretty sure that's something Access can do and I just don't know how yet...

    Thanks in advance!

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: How to query with multiple tables, filtered by value in 2nd table

    cant you just add the 3rd table to the query, join the table3.field to table1.field? where = metals
    OR
    create a query using the table3 where it only pulls metals, qsMetals
    then add this query to the join.
    Last edited by ranman256; 06-22-2015 at 11:59 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-04-2012, 10:51 AM
  2. Query to pull from Multiple similar tables
    By Lewis2010 in forum Access Tables & Databases
    Replies: 1
    Last Post: 05-17-2011, 02:40 PM
  3. Using a query design on multiple tables
    By MattyNinja in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-14-2010, 11:21 AM
  4. Replies: 2
    Last Post: 03-08-2006, 07:45 PM
  5. Web Query from multiple tables
    By jjbf22 in forum Excel General
    Replies: 0
    Last Post: 07-29-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1