B
Bunky
I have a query that has been working fine but now is allowing other dates to
be returned. The CompletedDate field is one of the criteria I am using for a
range to get data. By process of elimination, I have tracked the problem to
this: in the query I have DateValue([CompletedDate]) with a criteria of
Between ([Begin Date:]) And DateAdd("d",0,([End Date:])) so I will get all
records that have the Begin Date and those that have the End date. For some
reason, It is returning last years records.
The SQL follows:
SELECT Count(Table2.UserID) AS CountOfUserID
FROM Table2 INNER JOIN Table1 ON Table2.Module = Table1.Module
WHERE ((([table1.answer13]=[table2.answer13])=0) AND
((Table2.Module)=[Module No:]) AND ((DateValue([CompletedDate])) Between
([Begin Date:]) And DateAdd("d",0,([End Date:]))));
be returned. The CompletedDate field is one of the criteria I am using for a
range to get data. By process of elimination, I have tracked the problem to
this: in the query I have DateValue([CompletedDate]) with a criteria of
Between ([Begin Date:]) And DateAdd("d",0,([End Date:])) so I will get all
records that have the Begin Date and those that have the End date. For some
reason, It is returning last years records.
The SQL follows:
SELECT Count(Table2.UserID) AS CountOfUserID
FROM Table2 INNER JOIN Table1 ON Table2.Module = Table1.Module
WHERE ((([table1.answer13]=[table2.answer13])=0) AND
((Table2.Module)=[Module No:]) AND ((DateValue([CompletedDate])) Between
([Begin Date:]) And DateAdd("d",0,([End Date:]))));