+ Reply to Thread
Results 1 to 3 of 3

How to join two record sets from different DB using vba

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    Denver,CO
    MS-Off Ver
    Excel 2013
    Posts
    1

    How to join two record sets from different DB using vba

    I have an requirement that retrieving the data from two different data bases.
    I want to compare those two and prepare a report using VBA.
    I am able to get the data to excel separately, but now I need to join these two sets based on the key columns

    Thanks,
    Sreenivas

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How to join two record sets from different DB using vba

    can you import one table into the other database? you may be able to join them in code to create one recordset but you haven't provided any real information yet ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: How to join two record sets from different DB using vba

    You should import or link the data from one database to the other.

    You can then use a query to link tables etc and, if you need to, then export the results to Excel.
    If posting code please use code tags, see here.

+ 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] Macro - Identify Record sets and delete related Records
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2014, 04:16 PM
  2. [SOLVED] SQL Join - Left Join, but with 4 tables
    By kenny.fsw in forum Access Tables & Databases
    Replies: 4
    Last Post: 05-29-2013, 09:03 AM
  3. Replies: 1
    Last Post: 11-16-2012, 09:25 AM
  4. Compare two sets of data and join together
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2010, 10:05 AM
  5. Copying record sets to eliminate blank lines
    By EdMac in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-30-2007, 09:57 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