Time format - Thousandths of a second

Trickyrla

New Member
Joined
Jul 11, 2003
Messages
9
Hi guys - hope you can help

I am creating a simple swimming gala database (although it doesn't seem so simple now I've started!). In one of the tables I want to record competitors times in minutes, seconds and thousandths of a second. I also elsewhere need to be able to add similar times together. Can anyone tell me how I might be able to set up a custom time format for this please?

Many thanks

Tricky
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi Tricky,

The problem with standard date/time formats in Access is that they only store data to the nearest second. My advice to you would be to store the time as a Single data type and use seconds as the measure e.g 340.298 seconds. Any time you need to display the information you can easily do it with a simple calculation e.g.

Dim TimeTaken As Single
Dim MinsAndSeconds As String
MinsAndSeconds = IF(TimeTaken>60,INT(TimeTaken/60),0) &" Minutes " & MOD(TimeTaken,60) & " Seconds"
 
Upvote 0
Thanks Dan

Yep I thought I was going to have to "fudge it". Looks like I could have a little fun with input forms, queries and reports as well. I'll try your suggestion and see how it looks.

Thanks again

Tricky
 
Upvote 0

Forum statistics

Threads
1,221,621
Messages
6,160,879
Members
451,675
Latest member
Parlapalli

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top