Results 1 to 8 of 8

Thread: why doesn't this work!? (resolved)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Utah
    Posts
    397

    why doesn't this work!? (resolved)

    VB Code:
    1. Private sub Command1_Click()
    2. Dim user2 as string
    3. Dim pass2 as string
    4.  
    5. user2 = bob
    6. pass2 = hi
    7.  
    8. If user.Text = user2 & pass.text = pass2 Then
    9.     GoTo right
    10. Else
    11.     GoTo wrong
    12. End If
    13.  
    14. wrong:
    15. msgbox "Please enter the right username or password!"
    16. goto exit2
    17.  
    18. right:
    19. msgbox "You have entered the right username and password!"
    20.  
    21.  
    22. exit2:
    23. exit sub

    when i try this code, no matter what i type in the two text fields, i always get the message "Please enter the right username and password!" even when I type in bob for username and hi for password.

    please help
    Last edited by Narfy; Apr 21st, 2003 at 05:56 PM.

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