Joining 3 tables from 2 separate Access databases into a 1 query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KirenScooby
    New Member
    • May 2014
    • 1

    #1

    Joining 3 tables from 2 separate Access databases into a 1 query

    Try to join to separate tables from two separate databases into a single select query. I know that in VBA you can link the databases but i know tat .net isn't as native to access.
    Not sure how to do this? Can i use full path to a database in a from clause?

    Code:
    SELECT Chg200809.*, FocusCostTitle.TaskNo, FocusCostTitle.Dept, Dept.Title
    FROM (Chg200809 INNER JOIN FocusCostTitle ON Chg200809.TaskNo = FocusCostTitle.TaskNo) INNER JOIN Dept ON FocusCostTitle.Dept = Dept.Code;

    This is from VBA but im not sure how i can replicate this .net with haveing the tables linked to the project.
    Last edited by Rabbit; May 21 '14, 07:23 PM. Reason: Please use [CODE] [/CODE] tags when posting code or formatted data.
Working...