ChiTownDiva
Technical User
I have to run a daily report in Access 2000 based on orders placed for the day before.
How can I:
1. Automatically update the date criteria in the query to "yesterday's" date? That date is actually a date/time field.
2. Work around the "Saturday and Sunday" issue? On Monday morning I want to pull Friday's numbers, not Sunday's.
3. Update the text field or label field on the report generated from the query to reflect the date criteria of the query.
I don't have any experience in creating modules, but I'm eager to learn.
I tried:
Public Function YesterDate() as Date ()
YesterDate = CDate(DateAdd("d",-1, Date()))
End Function
I have no idea how to apply this module, and I'm not sure if if solves the "weekend" problem.
Thanks for your time.
How can I:
1. Automatically update the date criteria in the query to "yesterday's" date? That date is actually a date/time field.
2. Work around the "Saturday and Sunday" issue? On Monday morning I want to pull Friday's numbers, not Sunday's.
3. Update the text field or label field on the report generated from the query to reflect the date criteria of the query.
I don't have any experience in creating modules, but I'm eager to learn.
I tried:
Public Function YesterDate() as Date ()
YesterDate = CDate(DateAdd("d",-1, Date()))
End Function
I have no idea how to apply this module, and I'm not sure if if solves the "weekend" problem.
Thanks for your time.