Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    513

    filter 1 table based on values in another table

    this may be a <stupid> way of doing this but... I'm totally lost, so here goes:



    I have 2 tables that (could / should ?) be related in a 1-to-many...
    table_1 has a field: fixture_type, its values are unique
    table_2 has fields : fixture_type and sub_title; many records in table_2 could have the same value for fixture_type, but any value for fixture_type in table_2 will always be found in table_1...

    I also have a report with table_1 as its record source
    I want to filter it for records where an equal value for fixture_type exists in both tables, and the record in table_2 with the equal value also has a value in the field sub_title that equals some_value


    don't have a clue where to start...

    thnx in advance,
    mark

  2. #2
    jas0501's Avatar
    jas0501 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    15
    Click image for larger version. 

Name:	12-2-2014 11-48-27 PM.jpg 
Views:	5 
Size:	34.7 KB 
ID:	18930

    Here is the sql code

    SELECT Table2.FieldType, Table2.SubTitle
    FROM Table1 INNER JOIN Table2 ON Table1.[Field Type] = Table2.FieldType
    WHERE (((Table2.SubTitle)="Whatever"));

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

Similar Threads

  1. Replies: 3
    Last Post: 06-18-2014, 10:40 AM
  2. Replies: 6
    Last Post: 11-22-2013, 07:59 PM
  3. Replies: 2
    Last Post: 11-12-2012, 03:52 AM
  4. filter table by multiple values
    By TheShabz in forum Access
    Replies: 4
    Last Post: 11-01-2011, 05:34 PM
  5. Open a table in a From based on a filter
    By turbobeagle in forum Forms
    Replies: 1
    Last Post: 01-11-2008, 12:27 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