A
Abay
I have problems using dates as parameters in select queries. I changed the
date format from mmddyyyy to ddmmyyyy. Initially my parameter query where I
select data for a particular month (format mmddyyyy) was:
SELECT Qtech_hours_2.Wo_no, Qtech_hours_2.Notes, Qtech_hours_2.Cname,
Qtech_hours_2.Tech_hrs, Qtech_hours_2.Wo_return_date,
Qtech_hours_2.Tech_name, Qtech_hours_2.Job_date
FROM Qtech_hours_2
WHERE (((Qtech_hours_2.Job_date) Like [Enter Month] & "*"));
Now with the format changed to ddmmyyyy I am having a problem. I am trying
to select the month of November but get transactions dated 11/10/2005 (from
October) included with the following sql code:
SELECT Qtech_hours_2.Wo_no, Qtech_hours_2.Notes, Qtech_hours_2.Cname,
Qtech_hours_2.Tech_hrs, Qtech_hours_2.Wo_return_date,
Qtech_hours_2.Tech_name, Qtech_hours_2.Job_date
FROM Qtech_hours_2
WHERE (((Qtech_hours_2.Job_date) Like "*" & [Enter Month] & "*"));
Any help would be much appreciated.
Abay
date format from mmddyyyy to ddmmyyyy. Initially my parameter query where I
select data for a particular month (format mmddyyyy) was:
SELECT Qtech_hours_2.Wo_no, Qtech_hours_2.Notes, Qtech_hours_2.Cname,
Qtech_hours_2.Tech_hrs, Qtech_hours_2.Wo_return_date,
Qtech_hours_2.Tech_name, Qtech_hours_2.Job_date
FROM Qtech_hours_2
WHERE (((Qtech_hours_2.Job_date) Like [Enter Month] & "*"));
Now with the format changed to ddmmyyyy I am having a problem. I am trying
to select the month of November but get transactions dated 11/10/2005 (from
October) included with the following sql code:
SELECT Qtech_hours_2.Wo_no, Qtech_hours_2.Notes, Qtech_hours_2.Cname,
Qtech_hours_2.Tech_hrs, Qtech_hours_2.Wo_return_date,
Qtech_hours_2.Tech_name, Qtech_hours_2.Job_date
FROM Qtech_hours_2
WHERE (((Qtech_hours_2.Job_date) Like "*" & [Enter Month] & "*"));
Any help would be much appreciated.
Abay