Hi,
I have a query which selects yesterdays information for a report. Which is fine for most days of the week. But on a Monday it has to select the data not for yesterday but for Saturday AND Friday.
How can I say if Datepart("d",[date]) =2 then select -2 AND -3 days ago, otherwise just select -1 day ago.
Many thanks in advance
Steven
I have a query which selects yesterdays information for a report. Which is fine for most days of the week. But on a Monday it has to select the data not for yesterday but for Saturday AND Friday.
How can I say if Datepart("d",[date]) =2 then select -2 AND -3 days ago, otherwise just select -1 day ago.
Many thanks in advance
Steven