Results 1 to 2 of 2
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    Connection String for Query with two tables in different databases

    I have a query that joins a local table with a linked table. The linked table is linked properly under the Tables section. I have a connection string that points to my local database, but it's not working. When I try to open the recordset, I get the following error message: 'The connection string cannot be used to perform this operation. It is either closed or invalid in this context." I have ensured the connection is open so I'm thinking it's because the two tables are in different Access databases.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    The link is local so the the connection should recognize it and work with it as if table were actually in the frontend.

    Show your code for analysis.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Create dynamic connection string to Access
    By janwane in forum Access
    Replies: 2
    Last Post: 10-07-2011, 06:56 AM
  2. Replies: 3
    Last Post: 09-07-2011, 03:17 PM
  3. Connection String
    By cradaa in forum Access
    Replies: 4
    Last Post: 05-24-2011, 07:28 AM
  4. moving tables between databases
    By TheShabz in forum Programming
    Replies: 4
    Last Post: 11-15-2010, 05:54 PM
  5. Replies: 6
    Last Post: 09-30-2010, 11:12 AM

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