Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
SQL
ce
clients
clustering
connect
datamining
datawarehouse
dts
fulltext
jdbcdriver
msde
mseq
newusers
notificationsvcs
odbc
olap
programming
replication
reportingsvcs
security
securitytools
server
setup
sqlxml.viewmapper
tools
xml
  
 
date: Tue, 15 Jan 2008 20:01:15 GMT,    group: microsoft.public.sqlserver.odbc        back       


Suppress ODBC message..?   
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.
date: Tue, 15 Jan 2008 20:01:15 GMT   author:   Kent J

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us