Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access ODBC Client Server > Suppress ODBC M...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1421 of 1511
Post > Topic >>

Suppress ODBC Messages..?

by Kent J <kent.johnson@[EMAIL PROTECTED] > Jan 14, 2008 at 07:21 PM

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 also 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 just want the user see my messages.

Kent J.
 




 5 Posts in Topic:
Suppress ODBC Messages..?
Kent J <kent.johnson@[  2008-01-14 19:21:46 
Re: Suppress ODBC Messages..?
"Douglas J. Steele&q  2008-01-14 17:22:43 
Re: Suppress ODBC Messages..?
Kent J <kent.johnson@[  2008-01-15 19:55:04 
Re: Suppress ODBC Messages..?
"david" <dav  2008-01-18 15:20:48 
Re: Suppress ODBC Messages..?
Kent J <kent.johnson@[  2008-01-18 23:29:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 22:40:39 CST 2008.