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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date/time

Status
Not open for further replies.

ggreg

Programmer
Mar 9, 2001
201
US
I have a query that uses date/time where I get different
dates with times, I am wanting to set the criteria in this field for all dates but less than 6:30 PM when I put in <6:30:00PM the query comes back empty because of not having a date, how do I need to set the criteria to do this?
 
Something like this ?
... WHERE Format([date/time field],'hh:nn:ss')<'18:30:00' ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
or
WHERE TimeValue([date/time field])<#6:30 PM#

Duane
MS Access MVP
[green]Ask a great question, get a great answer.[/green]
[red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
[blue]Ask me about my grandson, get a grand answer.[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top