I have a form [Purchase Orders] and a subform [Purchase Orders Subform]. On the 1st form I have a combo box from which the user can select from a list of suppliers. On the subform there is a combo box from which the user can select from a list of products sold by the supplier chosen above. If the user enters a new product a message box appears asking them if they want ot add the new record. If they respond yes a product entry form opens and the user fills in the data. After the user finished with the new product entry, I run some VBA code in the afterupdate event to add a record with the productid and supplierid to a join table. I put the following requery after the code which added the new record in the afterupdate event.
Forms![Purchase Orders]![Purchase Orders Subform].Form![ProductID].Requery.
When I exit the entry form I get a message box stating that I need to save the record before requerying.
Where do I need to requery the combo box on the subform.
Thanks for you help.
Forms![Purchase Orders]![Purchase Orders Subform].Form![ProductID].Requery.
When I exit the entry form I get a message box stating that I need to save the record before requerying.
Where do I need to requery the combo box on the subform.
Thanks for you help.