Hello guys,
I am new user with access 2007 and I happy if you would help me with one problem I am not able to sort out.
I need make query to filter daily delivered loads which are not older than 3 days. For this I am trying to filter in table delivered loads by funcion <date()-3 . However, I have problem with weekends because I need to skip them.
For example: on Monday I need to start count loads from last friday (monday I will see loads from sunday, saturday,friday,thursday,wednesday.), On Tuesday I need to see loads for monday, sunday,saturday,friday and thursday. On Friday I need to see loads from Thursday,Wednesday and Thuesday.
I tried something like :
WHERE (((IIf(Weekday(Date())=3,(Date()-[Req Delivery Dt/Tm])<=5,(Date()-[Req Delivery Dt/Tm])<=3))<>False));
Thank you for any idea.