Hi
I'm still very new to Access and this issue may have been addressed previously but I can't find it.
In my database I have a Products Table. I also have a Returns Table and a Returns Detail Table. The returns and returns detail tables are linked. I enter the returns using a form Returns and a subform with the returns details. In the subform I have the Product Code and Product Description and Price fields. The product Code field is a combo box containing the code, description and price data. When I enter the product code, the description and price fields are automatically entered using an afterupdate event. This works just fine when I only open the subform to enter data but when the subform is embedded in the main form, the description and price fields are not updated when I enter the product code - those fields just stay blank.
Any idea why this would work when the subform is used by itself but not when open in the main form?
The after update procedure I am using is as follows:
Private Sub Code_AfterUpdate()
Description = Code.Column(1)
Price = Code.Column(2)
Supplier = Code.Column(3)
End Sub
Thanks for any suggestions!