G
Guest
Hello all,
I have this query which works fine when the start date is 1/1/2007 and end
date of 7/6/2007. When I use a start date of 12/31/2006 and end date of
7/6/2007, it returns no records.
The Received field is coming from a linked exchange file/inbox with the date
and time in the field. I tried to parse out just the date with the
Format(..... stuff.
What is wrong with my query?
SELECT qry_Call_Routing_Team_All.*, tbl_Status.*
FROM tbl_Status RIGHT JOIN qry_Call_Routing_Team_All ON tbl_Status.UniqueID
= qry_Call_Routing_Team_All.UniqueID
WHERE (((Format([Received],"mm/dd/yyyy")) Between
Format([Forms]![frm_Report_Menu].[txtStartDate],"mm/dd/yyyy") And
Format([Forms]![frm_Report_Menu].[txtEndDate],"mm/dd/yyyy")));
Any insight you can provide is appreciated.
I have this query which works fine when the start date is 1/1/2007 and end
date of 7/6/2007. When I use a start date of 12/31/2006 and end date of
7/6/2007, it returns no records.
The Received field is coming from a linked exchange file/inbox with the date
and time in the field. I tried to parse out just the date with the
Format(..... stuff.
What is wrong with my query?
SELECT qry_Call_Routing_Team_All.*, tbl_Status.*
FROM tbl_Status RIGHT JOIN qry_Call_Routing_Team_All ON tbl_Status.UniqueID
= qry_Call_Routing_Team_All.UniqueID
WHERE (((Format([Received],"mm/dd/yyyy")) Between
Format([Forms]![frm_Report_Menu].[txtStartDate],"mm/dd/yyyy") And
Format([Forms]![frm_Report_Menu].[txtEndDate],"mm/dd/yyyy")));
Any insight you can provide is appreciated.