Results 1 to 3 of 3

Thread: If ... Then Desicion structure

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    45
    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

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Question

    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

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    45
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width