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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update field in table based on value in a different text box

Status
Not open for further replies.

dleewms

Programmer
Aug 19, 2001
118
US
Hi,

I am using Access 2007. I have a text field on my form (txtPartNumber) that is correctly populated based on the choice in a combo box. The txtPartNumber field is locked so user can't change it. I need to update the part number field in another table which is also on the form [Part No] with the value from the txtPartNumber field. I created the following simple experssion, but it didn't work. Can anyone help?

Thanks!

Code:
Private Sub txtPartNumber_AfterUpdate()
Me.[Part No] = Me.txtPartNumber

End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top