Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with converting time values

Status
Not open for further replies.

BCarruth

Programmer
Feb 8, 2001
19
US
I have a calculated time value and would like to see it in decimal values for example:
Time value is 5:27 I would like to see the decimal value of 5.45 (I got these values using Excel formulas, but I can't get it to work in Access)
 
To get the decimal value for minutes, you divide the minutes by 60. You can generally extract specific parts of a date/time field using the DatePart() function. DatePart("n",[TimeField])/60 will give you the minutes as a decimal.

Paul
 
Thanks for the answer that solved my problem

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top