how do I convert minutes to decimals?

  • Thread starter Thread starter Guest
  • Start date Start date
I'm trying to convert minutes to decimals i.E. 15 minutes (:15) to .25
minutes / 60 should work =)
 
I'm trying to convert minutes to decimals i.E. 15 minutes (:15) to .25

What's the datatype of your field containing minutes? If it's
Date/Time, bear in mind that this field type is best used for exact
points in time, rather than durations. If it *is* a date/time, note
that Access stores such values as a Double Float count of days and
fractions of a day; so you should be able to use

CDbl(TimeValue([your-field-name])) * 24.

TimeValue will discard any date portion of the time field, CDbl will
convert the value to a Double number (where 6:00:00 will convert to
..25, a quarter of a day) and multiplying that fraction by 24 will get
you hours.

John W. Vinson[MVP]
 

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

Back
Top