Toby Honest
New member
- Local time
- Today, 15:29
- Joined
- Dec 20, 2010
- Messages
- 6
Access 2010/ web database: The main form is named Task Week Form, and the sub form is named Task Week Subform. The form query is just a basic select query from the the Tasks table, which amongst others contains a StartDate field for each task.
How can I program a button to filter the subform, displaying only the tasks with StartDate during next week from Date? I was about to suggest an On click data macro like this:
Clicking the button results in a blank subform. Is the macro close or far from it? (no vba code allowed in this web application)
How can I program a button to filter the subform, displaying only the tasks with StartDate during next week from Date? I was about to suggest an On click data macro like this:
Code:
SetLocalVar
Name: nextweek
Expression: NextWeekButton
SetFilter
Where Condition= [StartDate]=[LocalVars]![nextweek] > Date() +7
Control Name: Task Week Subform
Clicking the button results in a blank subform. Is the macro close or far from it? (no vba code allowed in this web application)