Date query not working

PaulSharma

Registered User.
Local time
Yesterday, 22:43
Joined
Aug 16, 2005
Messages
22
SELECT count(Workitem) AS ["Total Workitem"]
FROM qryReport
WHERE qryreport.date >(08/10/2005); 'MM/DD/YYYY

Secondy how do i supply dates dynamically.
 
you mean something like today date minus something???

for that try using the now() function and dateadd() function
 
Pat,

WHERE qryreport.date > DateAdd("d", 7, Date());

Wouldn't you want to use ...date>DateAdd("d", -7, Date())

Bob
 

Users who are viewing this thread

Back
Top Bottom