K
Karen
From another modal form I am trying to access the value in a text box on a subform. The subform is sfrmContact, the main form is frmBusinessTab, the control is txtlastname.
I have tried:
Dim strNameSearchCriteria As String
strNameSearchCriteria = Forms!frmBusinessTab.sfrmContact!txtLastName
AND
Dim strNameSearchCriteria As String
strNameSearchCriteria = Forms!frmBusinessTab.sfrmContact.Form!Controls.txtLastName
and both come up with following error:
"Application-defined or object-defined error"
Karen
I have tried:
Dim strNameSearchCriteria As String
strNameSearchCriteria = Forms!frmBusinessTab.sfrmContact!txtLastName
AND
Dim strNameSearchCriteria As String
strNameSearchCriteria = Forms!frmBusinessTab.sfrmContact.Form!Controls.txtLastName
and both come up with following error:
"Application-defined or object-defined error"
Karen