A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Race Results Formatting



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2004, 07:31 AM
Tugboat
external usenet poster
 
Posts: n/a
Default Race Results Formatting

Anyone
Seting up db to record race times and results for local swim club. How do I format the time cell? Need it to have minutes, seconds, tenths and thousanths of seconds
  #2  
Old May 5th, 2004, 11:46 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default Race Results Formatting

"=?Utf-8?B?VHVnYm9hdA==?=" wrote in
:

How do I format the time cell? Need it to have minutes, seconds,
tenths and thousanths of seconds


Depends: I'm a bit worried about the word "cell" as database terminology
usually uses words like "record", "field" (or occasionally row and column)
and "textbox".

For the storage, I'd use some kind of numeric value: in your case
presumably a floating point for seconds. A Long Integer holding
milliseconds would be an alternative if you really need spot-on precision.
This assumes you need to do some kind of maths on the values (average,
standard deviation, etc) -- if it's only sorting then a simple text string
would work but would be a bugger to validate. Can be done though.

For the display, you have a number of alternatives. The cheapest would be a
single texbox and requiring the user to convert everything into seconds.
Next up would be separate textboxes for the minutes, seconds and fractions,
and some VBA behind the scenes to convert the values to and fro. Then
again, you could have a set of spinner controls to let the user change the
values. Or a single textbox handling a string like "1:37.009" and parsing
that into and out of the real value. Best of all would be a custom ActiveX
control that does it all for you. Frankly I don't know if one of these
exists, but judging from the number of posts here asking exactly that
question I imaging that there is a huge market for one. If you have the
time and the inclination, VB from version 5 upwards has been able to create
ActiveX components...

Hope that helps


Tim F



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.