Results 1 to 3 of 3
  1. #1
    mailbox$1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    3

    SELECT WHERE query against a table in a different Access database

    I'd like to run a SELECT WHERE query against a table in a different Access database. Select three fields from the foreign table and end up with those fields in a table in my working database.



    Can that be done in Access? How?

  2. #2
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,111
    Link your external table in your target file and create an append query to add the records from source (linked) to target (local). I think you can set up an append query to push records into another database but not sure about being able to "pull" them as you are requesting.
    https://www.devhut.net/ms-access-vba...rnal-database/

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,778
    For "pull" try
    Code:
    Select * FROM tableNamehere IN "C:\blah\blah\blah\DatabaseNameHere.FileExtensionHere";
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 0
    Last Post: 06-16-2021, 02:14 AM
  2. Replies: 1
    Last Post: 02-19-2018, 02:24 AM
  3. Replies: 3
    Last Post: 06-01-2017, 06:57 AM
  4. Replies: 2
    Last Post: 08-11-2015, 12:46 PM
  5. Replies: 3
    Last Post: 05-15-2011, 10:52 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