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.