I have a query which is filtering by date as criteria...but it won't filter right.
There is a date field from a table in another query which has date/times in it.
I have used Format([Field], "Short Date") in that query to display just the date.
I am now doing another query which points to that query (It's a SQL Union query if that matters) and it has the following for the Criteria:
Between "6/1/2007" And "6/30/2007"
However, it is showing anything in the month of June for the years 2005, 2006 and 2007, instead of just 2007. Any ideas why it is doing this? It doesn't make sense to me that it will filter for the month/date but not the year.
I also tried changing the format to Format([Field], "mm/dd/yyyy") and criteria of "06/01/2007", etc.
There is a date field from a table in another query which has date/times in it.
I have used Format([Field], "Short Date") in that query to display just the date.
I am now doing another query which points to that query (It's a SQL Union query if that matters) and it has the following for the Criteria:
Between "6/1/2007" And "6/30/2007"
However, it is showing anything in the month of June for the years 2005, 2006 and 2007, instead of just 2007. Any ideas why it is doing this? It doesn't make sense to me that it will filter for the month/date but not the year.
I also tried changing the format to Format([Field], "mm/dd/yyyy") and criteria of "06/01/2007", etc.