G
Guest
I have a .mdb database that I am connecting to an MSDE back-end on a server
via ODBC. Every time I open the database, I get an error that looks like
this:
Connection Failed:
Login Failed for user (null). Reason: Not associated with a Trusted
Connection.
I tried using the following code in an AutoExec macro to solve the problem,
but to no avail:
Dim oConn As New ADODB.Connection
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Driver={SQL Server};Server=OFFICE-DC;DataBase=authorDB Linked
Tables 2003 NoSwitchboard SQL;Trusted_Connection=no;"
What the code does is to open a dialog box so that the user can enter his
username and password. The problem is that it does this AFTER the ODBC error
is displayed. Does anyone have any idea why I keep getting this error?
Any input would be greatly appreciated.
Thanks,
Chris
via ODBC. Every time I open the database, I get an error that looks like
this:
Connection Failed:
Login Failed for user (null). Reason: Not associated with a Trusted
Connection.
I tried using the following code in an AutoExec macro to solve the problem,
but to no avail:
Dim oConn As New ADODB.Connection
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Driver={SQL Server};Server=OFFICE-DC;DataBase=authorDB Linked
Tables 2003 NoSwitchboard SQL;Trusted_Connection=no;"
What the code does is to open a dialog box so that the user can enter his
username and password. The problem is that it does this AFTER the ODBC error
is displayed. Does anyone have any idea why I keep getting this error?
Any input would be greatly appreciated.
Thanks,
Chris