Hey Guys and Gals,
I have looked on numerous search engines and i have found nothing that can help me.
I have two forms inside a tabbed form.
Tabbed form is called frmTab
Form1 is called frmForm1
form2 is called frmForm2 with the public sub TestCall
I am trying to make a subroutine work in Form2 with a variable and as i am constructing this module i have come across a problem. I cannot call frmForm2 from frmForm1. It will just not find it... can anyone help
Code i am trying to access
All ways give me errors.
Please help
I have looked on numerous search engines and i have found nothing that can help me.
I have two forms inside a tabbed form.
Tabbed form is called frmTab
Form1 is called frmForm1
form2 is called frmForm2 with the public sub TestCall
I am trying to make a subroutine work in Form2 with a variable and as i am constructing this module i have come across a problem. I cannot call frmForm2 from frmForm1. It will just not find it... can anyone help
Code:
Public Sub btnTestCall_Click()
Call Forms!frmTab!frmForm2.TestCall 'Gives Error use only . and ( whilst highlighting the !)
' i have also tried:
'Call Forms.frmTab.frmForm2.TestCall
'Call TestCall
'Call Forms.frmForm2.TestCall
End Sub
Code i am trying to access
Code:
Public Sub TestCall()
Me.txtTestCall.Value = "WELL DONE!"
End Sub
All ways give me errors.
Please help