Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code to update field on another form

Status
Not open for further replies.

tizwaz

Technical User
Aug 8, 2002
437
GB
can anyone tell me what is the correct syntax to do the following. I want to put the code on the after update event of a field on formA to set the value of a field on formB where the ID numbers match.
 
Hi

Assuming both forms are loaded, and both contain the IdNo then

If Me.IdNo = Forms!formB!IdNo Then
Forms!FormB!IdNo = Me.IdNo
End if

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Put your code on the afterupdate event of the form
Jesp
 
Hi

No he said:

"I want to put the code on the after update event of a field on formA "

and that should be OK

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top