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!
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