R
Richard Horne
Hello guys.
I'm trying to run a very simple query that shows all results from a table
called EE_DR, where the Date field in this table is between two certain
dates. I have a form called Snapshot that has two text boxes StartDate and
EndDate that populate the query.
The query is as follows:
SELECT * FROM EE_DR
WHERE (((EE_DR.Date) Between [Forms].[snapshot].[StartDate] And
[Forms].[Snapshot].[EndDate]));
The problem I'm having is that is if I put today's date as the start and the
end date, even though there should be 1 result for today, no results are
actually found.
If I change the range of dates so that it queries from yesterday to
tomorrow, today's result is found just fine.
The date field used in the query is formatted as a short date in UK format
dd/mm/yyy.
Any reason why this is happening?
I'm trying to run a very simple query that shows all results from a table
called EE_DR, where the Date field in this table is between two certain
dates. I have a form called Snapshot that has two text boxes StartDate and
EndDate that populate the query.
The query is as follows:
SELECT * FROM EE_DR
WHERE (((EE_DR.Date) Between [Forms].[snapshot].[StartDate] And
[Forms].[Snapshot].[EndDate]));
The problem I'm having is that is if I put today's date as the start and the
end date, even though there should be 1 result for today, no results are
actually found.
If I change the range of dates so that it queries from yesterday to
tomorrow, today's result is found just fine.
The date field used in the query is formatted as a short date in UK format
dd/mm/yyy.
Any reason why this is happening?