views:

168

answers:

1

I have a textbox and a label in an Access form. Whatever is typed in the textbox needs to be reflected/mirrored in the label and I must use the OnKeyUp event for the textbox. How can I do this? This is a homework assignment. I have no programming experience and this is my first programming class. So far I have this:

Private Sub Text0_KeyUp(keycode As Integer, Shift As Integer)
    Label2 = Text0.Text.KeyUp
End Sub
+1  A: 

Use the change event of the textbox & set Label2.Caption = Text0.Text in that event.
The change event occurs when the contents of the textbox changes.

shahkalpesh