Hi all,
I have an Access form with login to SQL-server.
If a user try to log in with wrong password he's promted with a messagebox.
================
If SetConnectString(Me.strUserId, Me.strPassword) = False
MsgBox "Wrong username. Use correct pwd"
End
Else
================
...but
he's first promted with a message from ODBC:
"SQL-Server Error: 18456
Login failed för user MyUser"
...and then promted to ODBC-login
How can I suppress the messages from ODBC?
I'm quit happy with my own messages.
Kent J.
I have an Access form with login to SQL-server.
If a user try to log in with wrong password he's promted with a messagebox.
================
If SetConnectString(Me.strUserId, Me.strPassword) = False
MsgBox "Wrong username. Use correct pwd"
End
Else
================
...but
he's first promted with a message from ODBC:
"SQL-Server Error: 18456
Login failed för user MyUser"
...and then promted to ODBC-login
How can I suppress the messages from ODBC?
I'm quit happy with my own messages.
Kent J.