Results 1 to 27 of 27

Thread: [Resolved]Comparing

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    England
    Posts
    49

    Resolved [Resolved]Comparing

    VB Code:
    1. Private Sub Command3_Click()
    2. Dim pass1 As String
    3. Dim pass2 As String
    4.  
    5. pass1 = Jorn
    6. pass2 = Jorn
    7.  
    8. If pass1.Text = pass1 & pass2.Text = pass2 Then
    9. MsgBox "Correct"
    10. Else
    11. MsgBox "Hahah"
    12.  
    13. End If
    14.  
    15.  
    16. End Sub
    This is basicly checking if the same text has been entered into two different boxes and when I press a button and they are the same I want a message to be shown
    Why do I get the error invalid qualifier? vb highlights this bit
    Private Sub Command3_Click()
    help please
    Last edited by LeeMcCurry; Oct 26th, 2006 at 08:51 AM.
    If life was something money could buy, the poor would not live and the rich would not die.

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