chuckcoleman
Registered User.
- Local time
- Today, 08:23
- Joined
- Aug 20, 2010
- Messages
- 380
I can't get a Macro to run correctly. I have an Access 2010 report that I want to run when someone clicks on a Command button. The on-click of the button runs an embeded Macro. I have a Where Condition in the Macro that says:
=[Reports]![Open Work Order Report]![RequestedDateX]< & Date()
The macro opens the report but there aren't any records. [RequestedDateX] is a Date field in the report. I want to disply all records where the requested date is less than the day the Command button is clicked, i.e. the requested date has passed.
I don't want to modify the reports underlying query because the same report is used elsewhere and therefore I would need to maintain two query's. Seems like I should be able to do this, right?
=[Reports]![Open Work Order Report]![RequestedDateX]< & Date()
The macro opens the report but there aren't any records. [RequestedDateX] is a Date field in the report. I want to disply all records where the requested date is less than the day the Command button is clicked, i.e. the requested date has passed.
I don't want to modify the reports underlying query because the same report is used elsewhere and therefore I would need to maintain two query's. Seems like I should be able to do this, right?