I have a vehicle maintenance database that I’m having a problem with. There is a main form with subforms: frmMaster!frmVehicle!frmVehicleLog. On frmVehicle, there is a button that indicates how many outstanding work orders there are for that particular vehicle. When you click on that button, another form pops up that has a list of the outstanding work orders for that vehicle. There is a button on the detail section of the outstanding work orders form, that when clicked, I would like the form to close, set the focus to frmVehicleLog and go to the matching record that was selected from the outstanding work order form (because the work orders are included in frmVehicleLog). The [ServiceID] field is the common field. The data from both forms is stored in the same table (tblServiceLog) with different queries being used for the sources of the forms.
I can close the form and set the focus to frmVehicleLog, but I can’t get the correct code to move to the matching service record.
I can close the form and set the focus to frmVehicleLog, but I can’t get the correct code to move to the matching service record.