Hello, I'm new to access and I am trying to write a query that shows the orders that came in on the previous workday but on Mondays it will show the orders that came in on last Friday-Sunday. I'm trying to use the following code and it does work well for Tuesday-Friday but on Monday it does not return anything.
IIf(DatePart("w",Date())=2,(([Ordercat].[ORDERDATE]) Between DateAdd("d",-3,Date()) And Date()-1),DateAdd("d",-0,Date()))
I would appreciate any help you can give.