Time with 2 decimal places

P

Petra6

I am trying to write a databse of swimming times, which require the format
mm:ss.00; e.g. 16:23.34 (16 Minutes 23 Seconds 34 One Hundredths of a second
). In Excel I can create my own format to reflect the this but I seem to be
struggling with Access. Can anyone advise?
 
R

Rick Brandt

Petra6 said:
I am trying to write a databse of swimming times, which require the
format mm:ss.00; e.g. 16:23.34 (16 Minutes 23 Seconds 34 One
Hundredths of a second ). In Excel I can create my own format to
reflect the this but I seem to be struggling with Access. Can anyone
advise?

Access DateTimes are for storing points in time, not amounts of time. In
addition, the resolution doesn't go below one second. For your purposes
just store the total number of seconds using a Currency field and then use
an expression for display in minutes/seconds.

For example your time would be stored as 983.034 seconds and the
expression...

Format(983.034\60,"0:") & CStr(983.034 mod 60) &
Format(983.034-fix(983.034),".000")

....will return 16:23.034
 

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