-
I am so sorry to bother you guys and gals with this very elementery question but my MSDN libarary + my brain is not working.
What kind of statement do I use to connect two If...Then statements. For example:
If txtUserName = "Eivind Graversen" ............
If txtPassword = "password" Then
What is the connecting statement
-
I'm not sure if this is what you are asking but maybe you want to use AND operator:
Code:
If txtUserName = "Eivind Graversen" And txtPassword = "password" Then
'//blah blah blah
end if
HTH
-
Thanks what I did wrong was that i typed if blah And if blah then instead of if blah and blah.
I typed the if twicem, i am so sorry