Pass the textbox value from Form1 to Form2

Derek

Registered User.
Local time
Today, 06:26
Joined
May 4, 2010
Messages
234
Hi All

The textbox named "txtreference" has a value stored in it.The following code isn't working??
Code:
 Private Sub txtReference_AfterUpdate()
 Forms!Form2!txttemp.value=txtreference.value
 end sub
 
Is Form2 open at the time?

I'd clarify:

Forms!Form2!txttemp.value = Me.txtreference.value
 
if form2 is open try:

Forms!Form2.txttemp=me.txtreference
 

Users who are viewing this thread

Back
Top Bottom