Converting hrs:min to min

  • Thread starter Thread starter carmen
  • Start date Start date
C

carmen

I have a table with two fields hrs and min. How can I combine the two fields
into just min then put the results into another field named TotalTime?

Thanks
Carmen
 
I have a table with two fields hrs and min. How can I combine the two fields
into just min then put the results into another field named TotalTime?

Thanks
Carmen

You can determine the total amount of time by using the dateadd
function. Since this is a query newsgroup you have posted in, add a
new column to the query grid:

TotalTime:DateAdd("n",[Field1],[Field2])

Do you want to store it in a table?
Why would you want to?
As long as you already have stored in your table the 2 time fields
[Field1] and [Field2], whenever you need the total time simply repeat
the above calculation, in a query or if on a form or in a report using
=DateAdd("n",[Field1],[Field2]) as the control source expression in an
unbound countrol.
 
Back
Top