J
Jan T
Hi. I am using Access 2010 and have made a form frmOvertime with a
text box Control named txtEmpID. When I refer to this control I use
the following code:
lngEmpl = [frmOvertime ].Form![txtEmpID]. The code is in a standard
module and this works just fine.
However, when I add frmOvertime to my Navigationform (frmMAIN), as a
SubForm, Access cannot find my control? So I changed my code to
reference to lngEmpl = Forms!frmMAIN!frmOvertime .Form!txtEmpID but I
am stilling getting an error?
Any help to refer to this control, is very much appriciated?
Regards Jan T.
text box Control named txtEmpID. When I refer to this control I use
the following code:
lngEmpl = [frmOvertime ].Form![txtEmpID]. The code is in a standard
module and this works just fine.
However, when I add frmOvertime to my Navigationform (frmMAIN), as a
SubForm, Access cannot find my control? So I changed my code to
reference to lngEmpl = Forms!frmMAIN!frmOvertime .Form!txtEmpID but I
am stilling getting an error?
Any help to refer to this control, is very much appriciated?
Regards Jan T.