Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2012
    Posts
    23

    Question Unanswered: Textbox update problem

    Good morning,

    When I enter a value into text box and click Go button I get Msgbox saying that the value is null. However, when I enter a value, press enter and click Go button Msgbox displays it correctly.

    Is there a way to avoid pressing enter to register a value in textbox?

    Thank you.

  2. #2
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    What you describe is rather unusual. With "Text0" being the name of the textbox, you can try :
    Code:
    Private Sub Text0_Change()
    
        Me.Text0.Value = Me.Text0.Text
        Me.Text0.SelStart = Len(Me.Text0.Value)
        
    End Sub
    Have a nice day!

  3. #3
    Join Date
    Jan 2012
    Posts
    23

    Thumbs up

    I did txtPassword.Value = txtPassword.Text on button click event and it works perfectly.

    Thanks Sinndho!

  4. #4
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    You're welcome!
    Have a nice day!

  5. #5
    Join Date
    Jan 2012
    Posts
    23

    Question

    Thanks again.

Posting Permissions

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