Trap an errors in the ADODC control
Posted on 2004-08-13
Using ADODC control to connect to SQL Server 2000....
I have a login form that takes the username and password from the user and then constructs a connection string, then connect to database and populates a datagrid if the username and password is right.
How do I trap an error that is given when the wrong username or password is put into the connectionstring? Right now if I type in the wrong password or username it puts up a small messagebox. The messagebox is titled "ADODC1" the message is "Login failed for user 'ASD'"
ASD is just a bogus username...