+ Reply to Thread
Results 1 to 3 of 3

Access query to select records from two tables where fields match

  1. #1
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Access query to select records from two tables where fields match

    Hello,

    Need help with building an sql query with Excel VBA that would populate a worksheet from fields in the Access database that contained fld1, fld2 and fld3 from tbl1 and fld4, fld5, fld6 from tbl2. The records pulled from tbl1 would have fld1 = 'some text'. The records pulled from tbl2 would have fld4 = fld2

    Hope that makes sense.

    Thanks for suggestions and help.

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

    Re: Access query to select records from two tables where fields match

    Would really help if you posted a sample Access DB with limited records and then posted what you want the output to look like in Excel. Once we have that we can write a sql statement for your vba to export the data expected. To upload a sample Access file, you will need to zip it before uploading it.
    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
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: Access query to select records from two tables where fields match

    Will do. Thanks.

+ 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] Ms access Code to delete all records in a Tables
    By kirana2014 in forum Access Tables & Databases
    Replies: 1
    Last Post: 06-29-2021, 12:35 PM
  2. Replies: 0
    Last Post: 05-05-2017, 01:14 AM
  3. Replies: 2
    Last Post: 04-10-2014, 09:36 AM
  4. Query Access database and return all records to Excel
    By bfs3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2014, 11:01 PM
  5. Access Query with Calculated Fields Not seen by Excel
    By Xcelguy in forum Access Tables & Databases
    Replies: 12
    Last Post: 11-06-2013, 05:34 PM
  6. Access Table Query to Combine Records
    By smoothlarryhughes in forum Access Tables & Databases
    Replies: 4
    Last Post: 09-14-2012, 08:45 PM
  7. [SOLVED] MS Access Query Identify Friday's records.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2006, 03:50 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