Hello, I created an application that is basically a GUI(Front-end) to a SQL Server DB. When the user double clicks the app to start, it pops up a login form. If the user puts in the right password it continues and connects to the DB and populates the datagrid. That is perfect, but when a user puts in the wrong username or password, I have an adodc_error routine that traps the error that was given by the ado object, but the gui still pops up but the datagrid and it isn't populated.
When it errors out on a bad password or username, I want it to call the login form again, hide the main GUI (Where datagrid is) and start from the beginning again. Can someone give me some sample code helping me with this.
I have 2 forms. 1 form is the login form, the other is the GUI form.
I am using VB version 6.