Converting hrs:min to min

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
 
F

fredg

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.
 

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


Top