Results 1 to 2 of 2
  1. #1
    Madmax2 is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    13

    Searching for records based off two fields from two separate tables at once

    Okay so i messed up the design of my database and need a small search query as a work around.



    right now i have toolkits in a table primary key is uid. But in many cases it is the catapillar part number for this kit

    i have individual items of the kit in a separate table which also have cat part numbers attached to them

    lastly (for gee wiz). My third table provides the items per kit ids

    mainly not sure how to setup the query i need. I want it to search for a part number in table1 field uid and a part number in table2 field part#

    any thoughts?

    edited: Basically you put in the part number and it brings up all posible instances in both tables

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    How are tables related? What is common field that can be used to join them in query? Post example of table structures.

    Then apply same filter parameter to both fields with OR operator.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Linking data in two seperate tables
    By gavlap in forum Database Design
    Replies: 6
    Last Post: 04-15-2014, 06:03 AM
  2. Replies: 7
    Last Post: 03-20-2014, 06:20 AM
  3. Joining two Tables on two seperate Fields
    By Atlascycle in forum Queries
    Replies: 1
    Last Post: 01-23-2013, 09:01 AM
  4. Replies: 6
    Last Post: 07-19-2012, 11:43 AM
  5. Replies: 12
    Last Post: 04-07-2012, 12:09 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