Help w/text box on form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to see if I can do this....I have one text box in my form that
has a number that I will enter myself and I want another text box on this
same form but in another place to be populated after I fill in the number
from the first text box. Can this be done and if so, how do I do it?
 
teelee said:
I am trying to see if I can do this....I have one text box in my form that
has a number that I will enter myself and I want another text box on this
same form but in another place to be populated after I fill in the number
from the first text box. Can this be done and if so, how do I do it?

Use the after update event of the first textbox.

So your code would look something something like:

Private Sub txtMyFirstTextbox_AfterUpdate()
txtMySecondTextbox = "Some new value 123"
End Sub
 
I have it writen this
way....txtmyfirsttextbox_AfterUpdate()txtmysecondtextbox= "some new value 123
is this the way?
..
 
teelee said:
I have it writen this
way....txtmyfirsttextbox_AfterUpdate()txtmysecondtextbox= "some new value 123
is this the way?

That was just some example text. You need to replace "txtMyFirstTextBox"
with the actual name of your control.

The best way to do this is to bring up the properties of the textbox you
want to use this code with, and next to the After Update event, click
the ... to build the function. Then the function is created, and all you
need to add is the code in between.
 
Back
Top