The exact connection string looks like this:
ODBC;DSN=XXXX-YYYY;Database=M yDBASE;USID=XXX XX;PWD=ZZZZZZZ
There are no spaces in the string as it appears in any of my pass through queries. I have tried it with a closing semi-colon and without; no difference. As shown there is a hyphen in the ODBC connection name. This has never been an issue with linked tables.
User Profile
Collapse
-
-
Thank you all for your feedback. I do not think the problem is table linking. I have relinked using code as well as the standard Access method and the result is the same.
To test this I simplified the process down to a single pass through query. The pass through query has the correct connection data (See screenshot).
After opening the ACCDB the first action I perform is to manually open this query. The first time...Leave a comment:
-
Avoiding SQL login prompt with Access pass through queries
Using Access 2010 with and ODBC connection to SQL Server 10 my linked tables work fine, but each time we load an accdb file and execute a pass-through query we are prompted with the SQL Server Login dialog where the user must click OK to confirm the Login ID and Password. Once this initial prompt is handled it does not occur again while the accdb file is open.
This process is problematic because the end users could accidentally change...
No activity results to display
Show More
Leave a comment: