Calculating amount of time spent

G

Guest

Hi,

I have two fields: Date/Time Started and Date/Time Finished. If I create a
third field called Amount of Time Spent, Is there a function I can include in
it that will calculate the amount of time elapsed between Date/Time Started
and Date/Time Finished?

Thanks,
 
D

Dirk Goldgar

Rosemary said:
Hi,

I have two fields: Date/Time Started and Date/Time Finished. If I
create a third field called Amount of Time Spent, Is there a function
I can include in it that will calculate the amount of time elapsed
between Date/Time Started and Date/Time Finished?

In what units? The DateDiff() function can give it to you in seconds,
which you can convert to larger units by dividing appropriately. It
won't give you accuracy below a second or so, though.

And then there's the "better DateDiff function" posted here:

http://www.pacificdb.com.au/MVP/Code/Diff2Dates.htm
 
G

Guest

If calculating hour differences:

DateDiff("h", [DateTimeStarted],[DateTimeFinished])

HTH
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top