+ Reply to Thread
Results 1 to 8 of 8

Find Value in Qry results Table and return all matching Rows from other Tables

  1. #1
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Find Value in Qry results Table and return all matching Rows from other Tables

    Hi Forum,
    I've been trying to create a Search DB where the User enters a Search Term, which then searches for matches across several Columns in a table.
    There are other tables linked to the DB and the results located should also include all fields from the other tables.
    I've created a mockup DB for the purpose.
    Thanks for any suggestions.
    Attached Files Attached Files
    Remember you are unique, like everyone else

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    While you have provided both the DB and a copy of the excel file you have linked, when downloaded, the DB is looking for the excel file on your machine. You would have been better served loading the data into the db in this case rather than link them.

    Cannot test your query without relinking the files.

    Help us to help you by making it easy for us and not make us work to solve your issue.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    Thanks Alan, that's a good point.
    I'll redo & update.
    Peter

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    I've uploaded the DB with the Excel files imported rather than linked. Hope this helps.
    Attached Files Attached Files

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    What seems to be your issue. Your query appears to work as designed. My only suggestion to the query would be to create a parameter rather than hard code the lookup in the query itself. I am not sure how your form works as it does not appear to be linked to the query

  6. #6
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    I'm looking for the VBA that will do this. I've mocked up the search button to go to the Macro so that someone may know the best way to do this.

  7. #7
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    I'm looking for help to write the VBA to connect the query to the Form, I wanted to do as much as possible before I asked for help. Thanks Peter

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Find Value in Qry results Table and return all matching Rows from other Tables

    before any vba can be written, you need to bind the form to the query if you are looking for the results of the query to appear in the form. You should not have an unbound form for this type of scenario. Once that is in place then it is a simple macro to trigger the query. Got to walk before you can run.

+ 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. [SOLVED] Find all matching values in two tables and return identifier
    By Nora Kro in forum Excel General
    Replies: 3
    Last Post: 08-17-2018, 10:48 AM
  2. Replies: 5
    Last Post: 07-13-2018, 08:49 AM
  3. [SOLVED] Find a value, return another cell, results in a table without blanks
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2018, 01:58 PM
  4. Find Non Matching Value in rows between two tables
    By Keelin in forum Excel General
    Replies: 2
    Last Post: 02-17-2015, 12:20 AM
  5. Replies: 27
    Last Post: 06-06-2014, 05:30 PM
  6. [SOLVED] Matching two tables in size, while the parent table has input of rows weekly.
    By kiwinho in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-28-2012, 02:10 PM
  7. match 3 criteria in 1 table , find a matching row then return value from that row
    By bokusale in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2012, 12:48 PM

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