Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress ODBC message..?

Status
Not open for further replies.

Kujen

Technical User
Oct 13, 2007
57
SE
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top