I have a Form: Orders
With a subform: OrdersSubformOrderItems
I have created a third form: JobNoSearchF
When the user enter the last four or five digits of a job number on an unbound text box located on the subform and clicks the search command button the JobNoSearchF forms opens up and displays the job information. So far so good!!!
I have added a command button "Select" on the JobNoSearchF to add the located job back into a different field in the Subform.
I’ve tried this OnClick event five thousand ways and received just as many error msgs… with the below code I get “object required”
Any help would be greatly appreciated:
Private Sub cmdSelect_Click()
On Error GoTo Err_cmdSelect_Click
Me![JobID] = OrdersSubformOrderItems.Form!JobID
Exit_cmdSelect_Click:
Exit Sub
Err_cmdSelect_Click:
MsgBox Err.Description
Resume Exit_cmdSelect_Click
End Sub
Thanks again to anyone you may have a solution...
With a subform: OrdersSubformOrderItems
I have created a third form: JobNoSearchF
When the user enter the last four or five digits of a job number on an unbound text box located on the subform and clicks the search command button the JobNoSearchF forms opens up and displays the job information. So far so good!!!
I have added a command button "Select" on the JobNoSearchF to add the located job back into a different field in the Subform.
I’ve tried this OnClick event five thousand ways and received just as many error msgs… with the below code I get “object required”
Any help would be greatly appreciated:
Private Sub cmdSelect_Click()
On Error GoTo Err_cmdSelect_Click
Me![JobID] = OrdersSubformOrderItems.Form!JobID
Exit_cmdSelect_Click:
Exit Sub
Err_cmdSelect_Click:
MsgBox Err.Description
Resume Exit_cmdSelect_Click
End Sub
Thanks again to anyone you may have a solution...