Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Posts
    228

    Unanswered: unbound textbox: how to get value out

    I have an unbound textbox and I was playing around trying to get the value in that text box as the user types in it.

    if I do a msgbox me.txtbox in the on change event the value is not showing up
    What's the deal?

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Try On Key Up
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Sep 2003
    Posts
    228
    no worky either.
    It seems I have to leave the field before the value of the textbox control is saved into its value property.

  4. #4
    Join Date
    Jun 2004
    Posts
    96
    try me.txtbox.text

  5. #5
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb

    If you have two text Boxes on your Form Txt1 and Txt2 then try that

    PHP Code:
      Private Sub Txt1_KeyPress(KeyAscii As Integer)
         
    Txt2 Txt2 Chr(KeyAscii)
      
    End Sub 
    Note: you have to program the control char. such as BackSpace

Posting Permissions

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