Question : query to show anything due in the current week

I need to write a query to find anything with a Due Date that occurs in the current week. (actually, the report needs to show anything due today, due this week, and due this month)

So far, this is what I have tried:

SELECT *
FROM
(SELECT COUNT([Due Date]) AS [Due Today] FROM Issues WHERE ([due date]=Date()))  AS I1,
(SELECT COUNT([Due Date]) AS [Due This Week] FROM Issues WHERE [due date] is BETWEEN "FirstDayofWeek","LastDayofWeek")  AS I2;

I've also played with datediff, but don't know the correct syntax for it to always pull Sunday as first day, and Saturday as Last day.

Any help would be appreciated.

Thanks

Answer : query to show anything due in the current week

Are you referring to a "Week" as a number? (Week1- Week 53 of the current year)
Or do you mean a 7 day period form Sunday to Saturday.

Also remember that you can tweak this to take into account a different start day.
This formula works fine for me.

Here is a sample, and a screenshot
(For today Wednesday November 18, 2009)

JeffCoachman
 
Current Week query results for 2009-11-18
Current Week query results for 2009-11-18
 
Random Solutions  
 
programming4us programming4us