GPSPOW
asked on
Access Query on Date/Time not allowing criteria
I am writing a query in MS-Access using a SQL linked data table. The field, ServiceDateTime is a Date/Time format. When I look at the data it comes across as 9/20/13 8:52:00 AM.
When I enter the criteria =#9/20/13# I get no data returned.
How can transform the data to allow date criteria?
Thanks
Glen
When I enter the criteria =#9/20/13# I get no data returned.
How can transform the data to allow date criteria?
Thanks
Glen
try this criteria
where datevalue([ServiceDateTime ])=#9/20/2 013#
where datevalue([ServiceDateTime
ASKER
Neither solution worked.
The first said I had the wrong amount of arguments
The second said data type mismatch
Glen
The first said I had the wrong amount of arguments
The second said data type mismatch
Glen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked.
Thanks
Glen
Thanks
Glen
ASKER
thanks
In the field write this expression:
DateOnly: Date([YourTable].[yourColu
In the criteria write your criteria:
=#9/20/13#