Time

  • Thread starter Thread starter Curt
  • Start date Start date
C

Curt

How do you do a Time diff?
for instance Timeout - Timein

Thanks for any assistance
 
Curt,

Well that depends on what you're trying to accomplish.

If you want the number of hours between the two times, you can use:
DateDiff("h", Date1, Date2)

If you want the number of minutes between the two times, you can use:
DateDiff("n", Date1, Date2)

If you want the number of seconds between the two times, you can use:
DateDiff("s", Date1, Date2)

If you want the number of hours, minutes and seconds between the two times,
you can use:
http://www.pacificdb.com.au/MVP/Code/DiffTime.htm

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
 

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

Similar Threads


Back
Top