J
JulieD
hi
i've just checked out the article on Referring to Controls on a tabbed form
at www.mvps.org/access and still can't seem to get it to work.
i have a tabbed form (call FRM_Students), on the second tab of this form i
have a (continuous) subform called sFRM_Workplaces, and what i would like to
do is set the focus to a control (dateto) on this subform if an error occurs
(afterupdate event of the form)
the article says that the way to refer to a control on a tab page is
[subform control name].Form![control name]
which, if i'm understanding it correctly would translate to
sFRM_Workplaces.Form!dateto.setfocus
however, when i run the code i get the error message
"Variable not defined"
and sFRM_Workplaces highlighted.
Please help.
Regards
JulieD
i've just checked out the article on Referring to Controls on a tabbed form
at www.mvps.org/access and still can't seem to get it to work.
i have a tabbed form (call FRM_Students), on the second tab of this form i
have a (continuous) subform called sFRM_Workplaces, and what i would like to
do is set the focus to a control (dateto) on this subform if an error occurs
(afterupdate event of the form)
the article says that the way to refer to a control on a tab page is
[subform control name].Form![control name]
which, if i'm understanding it correctly would translate to
sFRM_Workplaces.Form!dateto.setfocus
however, when i run the code i get the error message
"Variable not defined"
and sFRM_Workplaces highlighted.
Please help.
Regards
JulieD