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

Calculating Time

Status
Not open for further replies.

plantfinder

Technical User
Sep 27, 2002
64
0
0
US
Can I use something like DateDiff [TimeIn], [TimeOut]) to
calculate elapsed time?

I'm not interested in the date. I have the fields set to medioum time,
i.e 11:30 AM

I don't know vba and really don't have time to learn if it's
avoidable. Im doing this for my business and am not a programmer.

Thanks

Mike
 
Yes ... but the correct format for DateDiff is
Code:
DateDiff ("n", [TimeIn], [TimeOut])  [red]<-- Minutes[/red]

OR

DateDiff ("h", [TimeIn], [TimeOut])  [red]<-- Hours[/red]
 





"I'm not interested in the date."

IF your times span more than one day, you MUST specify the date/time, or account for the days difference.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top