S
Secret Squirrel
I'm using "Date()-1" to filter one of my queries. How can I skip weekends
when using this? I need to show Friday's data on Monday's.
when using this? I need to show Friday's data on Monday's.
You can use the Weekday() function, e.g.Secret said:I'm using "Date()-1" to filter one of my queries. How can I skip weekends
when using this? I need to show Friday's data on Monday's.
hi,
You can use the Weekday() function, e.g.
IIf(Weekday(Date()-1)=1, Date()-3, Date()-1)
Take a closer look at the OH, because the results of Weekday may vary.
So use the approbriate value for the start day of the week.
mfG
--> stefan <--
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.