Results 1 to 3 of 3
  1. #1
    wes028 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    9

    Text Boxe Issue

    Trying to compare 2 text boxs on a form and see if there value's are equal. If they are, clear the value in the one field. If there not equal, display message that values don't match.



    What I've tried so far.


    Code:
     
    If Me.txtSe.Value <> Me.ReSNum.Value Then
             Me.txtSe = ""
        Else
            MsgBox "Values Don't Match", vbCritical, "Search Error"
            'Me.txtSe = ""
        End If

  2. #2
    Husseintech is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    4
    i think its good idea thank you and go forward

  3. #3
    wes028 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    9
    Solved. Had to change format on both text boxes to general number.


    Code:
     
    If Me.txtSe = Me.ReSNum Then
    Me.txtSe = Null
    Else
    MsgBox "Values Don't Match", vbCritical, "Search Error"
    End If

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 AM
  2. I can't enter text in a bound text box
    By Jerry8989 in forum Forms
    Replies: 3
    Last Post: 10-05-2009, 11:52 AM
  3. joining text in text boxes
    By jjwilliams73 in forum Forms
    Replies: 1
    Last Post: 08-26-2008, 02:30 PM
  4. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM
  5. Unbound text box truncating text
    By gddrew in forum Forms
    Replies: 0
    Last Post: 03-02-2006, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums