MS SQL Server and ODBC

Hi Tanner Lee!

No, I don’t get any error code (in this case it would be quite simple to solve the problem).
This is the code

ConnectionSuccessful = DB.Connect


If ConnectionSuccessful Then

  // leggo i parametri SMTP
  stringa = strIn.ReadLine
  s = Split(stringa, ";")
  gSMTPServer = s(0)
  gSMTPPort = s(1)
  gSMTPUser = s(2)
  gSMTPPwd = s(3)
  Main.Show
  LoginWindow.Hide
  LoginWindow.Close

Else
  'MsgBox "Utente o password errati. Riprovare."
  MsgBox DB.ErrorMessage
  txtUser.SetFocus
End If 

When the program executes the statement “ConnectionSuccessful = DB.Connect” (after typing a wrong user and/or password) two boxes are displayed:
First box
and then the ODBC login box is displayed
Second box
And then, finally, my MsgBox is displayed.

As you can see, there is nothing I can do in my code to avoid this: I hope there is a way or in the Connection string, or in some other way…