I have reached my frustration limit. I know the answer has to be simple...it always is..but.. I just can not figure this one out.
I have a program I'm working on. Everything in the program works perfectly except.... the Username/Password text box won't go away!! After you sign in the Username/Password text box should exit on Okay and that should be the end of it. No! Not this one..... Instead, you sign in, it exits, it lurks, it comes back... you hit 'x" on the little box and it exits, it lurks, it comes back...
I've tried coding it two different ways - both ways I get the same result. Here is what I have...
If Me.UsernameTextBox.Text = "Username" And Me.PasswordTextBox.Text = "Password" Then
MsgBox("Welcome to After Hours Dispatch")
MsgBox("Invalid Username/Password", 1)