Hi,
My table contains a date field "DateOfVisi t" and I have the following
query
SELECT Patients.PID, Patients.Lastna me, Patients.FirstN ame,
Patients.DateOf Visit, Patients.ToRepo rt
FROM Patients
WHERE (((Patients.Dat eOfVisit)>=GetS tartDate() And
(Patients.DateO fVisit)<=GetEnd Date()))
ORDER BY Patients.DateOf Visit;
(GetStartDate() and GetEndDate() are for getting the dates which are
held in public variables into the SQL.)
When I set the start and end date variables to Date() I expect to see
the entries with the "DateOfVisi t" as today, but they dont come up. If
I set the start date as an earlier date they come up along with other
records. I cant understand why?
Sunil Korah
My table contains a date field "DateOfVisi t" and I have the following
query
SELECT Patients.PID, Patients.Lastna me, Patients.FirstN ame,
Patients.DateOf Visit, Patients.ToRepo rt
FROM Patients
WHERE (((Patients.Dat eOfVisit)>=GetS tartDate() And
(Patients.DateO fVisit)<=GetEnd Date()))
ORDER BY Patients.DateOf Visit;
(GetStartDate() and GetEndDate() are for getting the dates which are
held in public variables into the SQL.)
When I set the start and end date variables to Date() I expect to see
the entries with the "DateOfVisi t" as today, but they dont come up. If
I set the start date as an earlier date they come up along with other
records. I cant understand why?
Sunil Korah
Comment