T
tbrogdon
I have a form with a subform. Main form (frmProd) takes 3 criteria via
combo boxes and is bound to tblProduction. The subform (sfmProdOp) is
bound to tblProdOp and contains the details for each instance in
tblProduction.
Currently I have the following code (thanks to Marshall!) attached to
the After Update event of the final combo box of the main form:
Private Sub cboShift_AfterUpdate()
If Me.Dirty Then Me.Dirty = False
Me.sfmProdOp.SetFocus
Me.sfmProdOp.Form.cboWorkstationID.SetFocus
End Sub
This works great with a new record. However, the user sometimes puts
incomplete data in the fields in sfmProdOp or generally doesn't finish
input in one sitting. I would like for the user to be able to use the
same form, enter the same 3 criteria in the main form and if a record
does exist in tblProduction bring up the related records in sfmProdOp
from tblProdOp for editing and entering more records. Is this
possible?
Thanks,
Tim
combo boxes and is bound to tblProduction. The subform (sfmProdOp) is
bound to tblProdOp and contains the details for each instance in
tblProduction.
Currently I have the following code (thanks to Marshall!) attached to
the After Update event of the final combo box of the main form:
Private Sub cboShift_AfterUpdate()
If Me.Dirty Then Me.Dirty = False
Me.sfmProdOp.SetFocus
Me.sfmProdOp.Form.cboWorkstationID.SetFocus
End Sub
This works great with a new record. However, the user sometimes puts
incomplete data in the fields in sfmProdOp or generally doesn't finish
input in one sitting. I would like for the user to be able to use the
same form, enter the same 3 criteria in the main form and if a record
does exist in tblProduction bring up the related records in sfmProdOp
from tblProdOp for editing and entering more records. Is this
possible?
Thanks,
Tim