I have a main form called scanningdetails and a subform called labortrackingtablesubform.
When scanning a field in the main form I pass a value to a field [text12] in the subform. I then run this code on the field text12.
the code works when I open the subform by itself but not when it is embedded in the scanningdetails form.
Private Sub Text12_AfterUpdate()
DoCmd.SearchForRecord acDataForm, "LaborTrackingTablesubform", acFirst, "[ID]=" & Me.[Text12]
End Sub
I recied Run-Time error'2489'. The object 'labortrackingtablessubform' isn't open.
Any suggestions?
When scanning a field in the main form I pass a value to a field [text12] in the subform. I then run this code on the field text12.
the code works when I open the subform by itself but not when it is embedded in the scanningdetails form.
Private Sub Text12_AfterUpdate()
DoCmd.SearchForRecord acDataForm, "LaborTrackingTablesubform", acFirst, "[ID]=" & Me.[Text12]
End Sub
I recied Run-Time error'2489'. The object 'labortrackingtablessubform' isn't open.
Any suggestions?