Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 12:15 PM
P Mitchell
Guest
 
Posts: n/a
Default Data entry of a swimmers/athlete's time

How you set up a field to store for example, 1 min 30.23 secs for a
swimmer's time in a database table?

Peter


  #2  
Old November 13th, 2005, 12:15 PM
Allen Browne
Guest
 
Posts: n/a
Default Re: Data entry of a swimmers/athlete's time

Best to store the value as a number of seconds, and write a function to
display it as minutes and seconds.

Because you want a fractional number, you cannot use the integer types. A
Double would work, but if you want to store the precise number of
milliseconds, a Currency field might be best. It will retain exactly 4
decimal places of precision (tenths of a milllisecond), and cope with values
as large as many years.

To display as minutes, use integer division by 60 (i.e. the \ operator.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"P Mitchell" <pmitchell@mail.com> wrote in message
news:42b95768_3@news.chariot.net.au...[color=blue]
> How you set up a field to store for example, 1 min 30.23 secs for a
> swimmer's time in a database table?
>
> Peter[/color]


 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles