hello all,
I am trying to create a function for a SELECT query that uses the current weeks Monday and goes to Sunday. Then the following Monday the records are reset. For example last weeks data is,
Monday 26 Sep data data data
Tuesday 27 Sep data data data
Wed 28 Sep data data data
Thurs 29 Sep data data data
Fri 30 Sep data data data
Sat 1 Oct data data data
Sun 2 Oct data data data
The above records are only presented for that date range of that specific week. This week the records should be so far on a Wednesday:
Monday 3 Oct data data data
Tuesday 4 Oct data data data
As you will note, my data is going to be always behind one day of the current day.
The current Where clause I have is:This gets 7 days, but it does not do what I describe above.Code:WHERE (((SDTicketClosuresforyesterday.Dates) Between (DateAdd("d",-7,Date())) And (Date())));
I hope I have explained this well enough.