G
Guest
I'm attempting to create a time entry form using one main form, a tab control
on the main form, and the same subform on all five tabs of the tab control
(Mon, Tues, Wed etc.).
I want to filter the recordsource of the subform by a date in VBA. There
are five date fields on the main form which calculate the Monday through
Friday dates of the week in which the user enters a date in the main date
field on the main form. The five subsequent subforms are then intended to
match those dates so users can enter time information.
How do I update the recordsource for the subform based on which tab control
is selected? So if a user selects the Tuesday tab, the Tuesday date in the
'Tuesday calculated field' is used to filter the subform's recordset. I'm
guessing that a global variable and possibly a module are involved, but I
don't know how it should flow. Thanks for the help.
Melanie
on the main form, and the same subform on all five tabs of the tab control
(Mon, Tues, Wed etc.).
I want to filter the recordsource of the subform by a date in VBA. There
are five date fields on the main form which calculate the Monday through
Friday dates of the week in which the user enters a date in the main date
field on the main form. The five subsequent subforms are then intended to
match those dates so users can enter time information.
How do I update the recordsource for the subform based on which tab control
is selected? So if a user selects the Tuesday tab, the Tuesday date in the
'Tuesday calculated field' is used to filter the subform's recordset. I'm
guessing that a global variable and possibly a module are involved, but I
don't know how it should flow. Thanks for the help.
Melanie