How do I write a query to ignore the date in a date/Time field

  • Thread starter Thread starter Guest
  • Start date Start date
If you want to return only the time from the field then use
' Not to include seconds
format(DateField,"hh:mm")
or
format(DateField,"short time")

' To include seconds
format(DateField,"hh:mm:ss")
or
format(DateField,"Long time")
 
How do i make query to ignore a date in the Date/Time field in Access 2003?

Thank you
TT

Tim, you've had this question answered five times in three newsgroups.

Please have a LITTLE bit of patience, and read the answers.

The TimeValue() function will return a Date/Time value on December 30,
1899 which will match a pure time criterion.

John W. Vinson[MVP]
 
John Vinson said:
Tim, you've had this question answered five times in three newsgroups.

Please have a LITTLE bit of patience, and read the answers.

More than 3 newsgroups, John...
 
Back
Top