I need to get records based on a range of dates that change depending on when I am running the query.
ie: If I run it on Monday I need records with dates from between 10 and 16 days ago; if I run it on Tuesday, I need records with dates from between 11 and 17 days ago...
DateAdd does not seem to work with "Between x And y".
Any suggestions? I'm pulling hair out.
ie: If I run it on Monday I need records with dates from between 10 and 16 days ago; if I run it on Tuesday, I need records with dates from between 11 and 17 days ago...
DateAdd does not seem to work with "Between x And y".
Any suggestions? I'm pulling hair out.