Change the criteria to
WHERE [date entered in Log] Between [Enter Date] and
DateAdd("d",1,[Enter Date])
Or if you might have records that were entered at exactly midnight.
WHERE [date entered in Log] >= [Enter Date]
and [date entered in Log] < DateAdd("d",1,[Enter Date])
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Thanks everyone for your suggestions. Upon further review, I need to
modify my query from what I stated above.
Here is what I need to accomplish:
I have a query with the following relevant (to my question) fields.
Date Entered in Log (the timestamp field)
Windows Login
The purpose of the query is for users to double-check their entries.
To activate this query, the users select a button on a form entitled
View Batches. The query then will prompt them to "Enter the Date the
Batches Were
Logged" and "Enter Username"
When I enter for example 08/19/09 and a username, there are a bunch
of
records that should be returned, but I am not getting anything. What
do I need to put in the criteria to have users answer the question,
then compare that against the timestamp to have the records returned?
Hope this makes sense.
Thanks!- Hide quoted text -
- Show quoted text -