How To Supply User Authentication when Opening Jet Linked Tables to ODBC Datasources (245587)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q245587 SUMMARY In Microsoft Access, when you first link (attach) an
external table using an ODBC driver, you have the option to store the User ID
and password for the table locally. If you do not store the ID and password
locally, you will be prompted later for such information when you open the
table. If you open the table through ActiveX Data Objects (ADO), you
receive this run-time error: "-2147467259(80004005)
ODBC--Connection to 'Server' Failed" The error occurs because the
connect string is not complete. This article demonstrates how to open
a Microsoft Access linked table in ADO by pre-connecting to the database and
providing User ID and password programmatically in Visual Basic.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbClient kbDatabase kbhowto kbJET KB245587 |
---|
|