Using Access 2000
I want to be able to set the previous Thursday's date in a text box.
If the date is today (February 6), the following SQL will give me the correct date of the previous Thursday, which in this case is February 5
Will this be correct in all circumstances?
Thanks.
Tom
I want to be able to set the previous Thursday's date in a text box.
If the date is today (February 6), the following SQL will give me the correct date of the previous Thursday, which in this case is February 5
Code:
SELECT Date() AS MyDate, [MyDate]-Weekday([MyDate])+IIf(Weekday([MyDate])<=5,0,7)-2 AS Expr2;
Will this be correct in all circumstances?
Thanks.
Tom