I have a main form with a subform on it. There is a command button on main form that opens a third form that when it opens, contains data from textboxes on both the main and subform and has a few new ones for added data.
Problem is when I click command button I get errror 'can't find subform'. I have checked the subform name over and over. Even tried changing it. No good.
Here's the code I am trying in 3rd form's OnOpen:
Private Sub Form_Load()
txtAuditor = [Forms]![AUDIT WITH MULTIPLE ERRORS]![Auditor Number]
txtDate = [Forms]![AUDIT WITH MULTIPLE ERRORS]![Date]
txtEmpl = [Forms]![EmplErrorsSubform]![Employee]
End Sub
Keep getting error on the txtEmpl line.
Thanks.
Problem is when I click command button I get errror 'can't find subform'. I have checked the subform name over and over. Even tried changing it. No good.
Here's the code I am trying in 3rd form's OnOpen:
Private Sub Form_Load()
txtAuditor = [Forms]![AUDIT WITH MULTIPLE ERRORS]![Auditor Number]
txtDate = [Forms]![AUDIT WITH MULTIPLE ERRORS]![Date]
txtEmpl = [Forms]![EmplErrorsSubform]![Employee]
End Sub
Keep getting error on the txtEmpl line.
Thanks.