Automatically populate a text box

A

Ali

When a value is entered into one text box, I want that
value to automatically populate another text box in the
same form. How do I do this?

Thanks
 
R

Rick B

In the first text box's AfterUpdate event, enter the code...

Private Sub TextBox1_AfterUpdate()
Me!TextBox2 = TextBox1
End Sub


Rick B




When a value is entered into one text box, I want that
value to automatically populate another text box in the
same form. How do I do this?

Thanks
 
K

Kevin Sprinkel

Set its Control Source property to the name of the first
textbox:

=[yourtextboxname]

HTH
Kevin Sprinkel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top