Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date/Time Query (HELP!) 1

Status
Not open for further replies.

Fresh

Technical User
Sep 14, 2000
6
0
0
US
I'm a newbie so bare with me...

I'm querying multiple tables in a an Access DB. I'd like the query to include only results for items time stamped from yesterday after 4:00pm to the present.

I've used

>=Date() Or >=Date()-1

This gets me yesterday and today but can't figure how to narrow down the time. The time format in the table is

10/19/01 10:32:03 AM

Thanks for any help!
 
To use a literal date/time in code you need to put # symbols around it. The "#" is the date delimeter much like double quote (") is a text delimeter.

>= #10/18/01 4:00 PM#

Or >= Date + #4:00 PM# - 1

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top