Date/Time update

C

ChristieB

How do I create a field that will update a time if two other fields are the
beginning time and the end time? I need the total hours that elapsed between
those two times to be automatically updated in my table.
 
J

John W. Vinson

How do I create a field that will update a time if two other fields are the
beginning time and the end time? I need the total hours that elapsed between
those two times to be automatically updated in my table.

The time between the start and end time should NOT be stored in any table.
It's redundant.

Instead, you can use a Query or the control source in a form or control
textbox; use a calculated field such as

=DateDiff("h", [BeginningTime], [EndTime])

to calculate integer hours, or

=DateDiff("n", [BeginningTime], [EndTime])/60

to get hours and fractions of an hour.
 

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