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

Comparing value in a time format to an integer that represents seconds

Status
Not open for further replies.

inso18

Technical User
Dec 30, 2006
147
IL
Hello.

I'm very much interested in putting a criteria into a query that will show only the values that are bigger than an integer number of seconds (for ex. 12) The time values field that is being compared is in 00:12 format (minutes:seconds)

I cannot compare time to an Interger number.

Maybe I can convert the integer number into time format and than compare it somehow with the time values from the field?

Advices?

Regards, inso18

 
If the time field is of type DateTime with no date value:
NumberOfSeconds: Int(TimeField*86400)

If the time field is of type DateTime with the date value:
NumberOfSeconds: Int((TimeField-Int(TimeField))*86400)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top