Date calculation

  • Thread starter Thread starter sammy
  • Start date Start date
S

sammy

am working on a database with a time field
Is there a way to calculate time differences in an Access
Query? thanks
 
am working on a database with a time field
Is there a way to calculate time differences in an Access
Query? thanks

Look up the DateDiff function in VBA help.

ElapsedTimeInHours:DateDiff("h",[StartTime],[EndTime])

ElapsedTimeInMinutes:DateDiff("n",[StartTime],[EndTime])
 

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

Back
Top