Time Button re-visited

D

DaveB

I wrote in the question below at "DaveB wrote", and you
answered below at "Like having this" but when I used it,
it only put in 1.0 for the day, probably because I have
both fields set for the general date, but what I really
need it to show is the hours. How do I do this?

Like having this

Me.TotalTimeofBill = Me!CompletionDateTime - Me!
StartDateTime

in the Click event of the button?
Pavel
 
W

Wayne Morgan

Me.TotalTimeOfBill = DateDiff("h", Me!StartDateTime, Me!CompletionsDateTime)

How do you want to handle parts of hours? Usually, if you want hours, it is
better to get minutes then calculate from their hours and part of hours.
 

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