oxicottin
Learning by pecking away....
- Local time
- Today, 01:48
- Joined
- Jun 26, 2007
- Messages
- 888
Is it possible in my print codes [Where Condition] to change the date of a textbox on my report?
What I mean is I have a textbox (txtSpotcheckDate) that's control source is a particular date. Now when I print the report can I or am I able to change that date using the [Where Condition] to a earlier date?
The table (tbl_WeeklySafetyHuddle) field (WeekEnding) holds the date that the report uses.
What I mean is I have a textbox (txtSpotcheckDate) that's control source is a particular date. Now when I print the report can I or am I able to change that date using the [Where Condition] to a earlier date?
The table (tbl_WeeklySafetyHuddle) field (WeekEnding) holds the date that the report uses.
Code:
DoCmd.OpenReport "rpt_SpotCheck", acViewPreview, , "[WeekEnding]=" & txtSpotcheckDate - 4 , acHidden
DoCmd.PrintOut