A
andrew3254
Hi, I have a form which has many subforms, one for each month of the year and
a bit of code which sets the focus to the current month and changes the
background colour.
How do i go about accessing a field called month on that form?
Here is the code i have so far:
stran = "Month" & Month(Now)
Set ctl = Forms![Frm_View
Detailed].Form.Controls("sub").Form.Controls(stran) '.ActiveControl
ctl.SetFocus
a bit of code which sets the focus to the current month and changes the
background colour.
How do i go about accessing a field called month on that form?
Here is the code i have so far:
stran = "Month" & Month(Now)
Set ctl = Forms![Frm_View
Detailed].Form.Controls("sub").Form.Controls(stran) '.ActiveControl
ctl.SetFocus