Kellogg,
You've probably already discovered how to use conditions in a macro...
if not, while in Macro design, run menu item View > Conditions. This
allows you to execute the action next to a condition only if the
condition is met.
Now, the way to determine the current day of week, is through the use of
function Weekday. So, if you want a different report on, say, Monday,
then you would do something like:
Condition Action
WeekDay(Date,0) = 1 OpenReport (report A)
WeekDay(Date,0) <> 1 OpenReport (report B)
HTH,
Nikos
Kellogg - 24 Oct 2005 18:35 GMT
I tried adding the condition, but when I save the macro it puts brackets
around the word date and gives me the error message "can't find the name
'Date' you entered in the expression".
> Kellogg,
>
[quoted text clipped - 12 lines]
> HTH,
> Nikos
Steve Schapel - 24 Oct 2005 18:43 GMT
Kellogg,
Try it like this...
WeekDay(Date())=1

Signature
Steve Schapel, Microsoft Access MVP
> I tried adding the condition, but when I save the macro it puts brackets
> around the word date and gives me the error message "can't find the name
> 'Date' you entered in the expression".
Kellogg - 26 Oct 2005 01:37 GMT
This works just the way I had envisioned.
Thanks!!!
> Kellogg,
>
[quoted text clipped - 4 lines]
> > around the word date and gives me the error message "can't find the name
> > 'Date' you entered in the expression".