CR8.5
If today <> Monday, I need data from yesterday
If today = Monday, I need data from the last 3 days (Sunday, Saturday, Friday).
I'm using a dateadd as such:
...for each day other than Monday. How can I set Monday's statement to include the last 3 days?
If today <> Monday, I need data from yesterday
If today = Monday, I need data from the last 3 days (Sunday, Saturday, Friday).
I'm using a dateadd as such:
Code:
if dayofweek(CurrentDate) = crTuesday
then DateAdd("d", -1, Date(year(CurrentDate),month(CurrentDate),day(CurrentDate)))
else
...for each day other than Monday. How can I set Monday's statement to include the last 3 days?