SunQuest
 
           Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 11th, 2008, 09:47 PM
section6runs section6runs is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 section6runs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 17 sec
Reputation Power: 0
Running times for track & field events

What field type and format should I use to maintain times and distances from track events?

I've tried different formats and am not having much luck.

I need to be able to sort by times so text fields won't help me in that regard.

I would appreciate suggestions...thanks!

Reply With Quote
  #2  
Old May 11th, 2008, 11:15 PM
sbenj69's Avatar
sbenj69 sbenj69 is offline
Dark Sonic Apprentice :D
Click here for more information
 
Join Date: Feb 2007
Location: Redneck part of Illinois
Posts: 1,454 sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)sbenj69 User rank is General 2nd Grade (Above 100000 Reputation Level)  Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188372 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Weeks 5 Days 13 h 38 m 51 sec
Reputation Power: 1077
well that depends on how you are storing the data.....

For instance if a race began at 6:01:02 PM and the ending times were something like 6:04:20 then I would use the date/time format......

If you are recording the times by time ran..... 0:03:18 then I would still use the time format.

Now, if you are storing by seconds.......198 seconds, then I would store it as an integer

If you are storing by seconds and fractions of a second.... 198.005005 seconds then I would use number, either single or double format depending on the accuracy of the timer.

Distances will be stored as a number, probably single format (2 decimals) For instance, 1800.03 meters

Now, if you're using a time format not supported by access (0:03:18:018 - 3 minutes 3 seconds and 18/1000th of a second, then I would use a string and parse out the numbers-this is a little more complicated as you have to use instr to find the colons, convert to number and then make it number.....all-the-while having error checking in place converting strings to numbers. Depending on how you want to use the data, you may have to convert the number to time format...... for instance a decimal equal to time..... 3 minutes would equal .05 of an hour 18 seconds would equal .005 and 18/1000th of a second would equal .000005 of an hour giving you .055005 hours. If my math is correct (which may be wrong, as I'm operating on a 6 pack right now )

Basically, it comes down to the times that you are wanting to enter..... I'm guessing it will be seconds/fractions of seconds, in which it will be stored as a single or double type number depending on the accuracy. This makes the most sense since fractions of a second is still in decimal format..... when you want to convert to time, you divide by 60 for minutes, 3600 for hours.

Again.... how do you want to record the data?
Comments on this post
don94403 agrees: I'm worse off than you, benj, i just added rep to the wrong post!! (see below!)
__________________
Did I help you? If so gimme rep by clicking on the at the top right corner of this post

Madness does not always howl. Sometimes, it is the quiet voice at the end of the day saying, "Hey, is there room in your head for one more?"

Reply With Quote
  #3  
Old May 12th, 2008, 07:14 PM
section6runs section6runs is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 section6runs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 17 sec
Reputation Power: 0
Quote:
Originally Posted by sbenj69
well that depends on how you are storing the data.....

For instance if a race began at 6:01:02 PM and the ending times were something like 6:04:20 then I would use the date/time format......

If you are recording the times by time ran..... 0:03:18 then I would still use the time format.

Now, if you are storing by seconds.......198 seconds, then I would store it as an integer

If you are storing by seconds and fractions of a second.... 198.005005 seconds then I would use number, either single or double format depending on the accuracy of the timer.

Distances will be stored as a number, probably single format (2 decimals) For instance, 1800.03 meters

Now, if you're using a time format not supported by access (0:03:18:018 - 3 minutes 3 seconds and 18/1000th of a second, then I would use a string and parse out the numbers-this is a little more complicated as you have to use instr to find the colons, convert to number and then make it number.....all-the-while having error checking in place converting strings to numbers. Depending on how you want to use the data, you may have to convert the number to time format...... for instance a decimal equal to time..... 3 minutes would equal .05 of an hour 18 seconds would equal .005 and 18/1000th of a second would equal .000005 of an hour giving you .055005 hours. If my math is correct (which may be wrong, as I'm operating on a 6 pack right now )

Basically, it comes down to the times that you are wanting to enter..... I'm guessing it will be seconds/fractions of seconds, in which it will be stored as a single or double type number depending on the accuracy. This makes the most sense since fractions of a second is still in decimal format..... when you want to convert to time, you divide by 60 for minutes, 3600 for hours.

Again.... how do you want to record the data?



Wow, thanks for the input. Yes, the times will be recorded in a MM:ss.99 (minutes, seconds, to the 100th second).

The text can then be converted to a number, correct so that I can sor tit accurately.

thanks!
Comments on this post
don94403 agrees: Hey, ben, pass over one of those cans, wouldja?

Reply With Quote
  #4  
Old May 13th, 2008, 08:55 AM
rpeare rpeare is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2008
Posts: 674 rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 7 h 38 m 37 sec
Reputation Power: 172
As long as your events don't lap over into the hours I would be inclined (as ben suggested) to store it as a double value. So for instance a race that lasted 3 minutes 18.45 seconds I would store as 198.45. When you reported these values or sorted them it would be a lot easier for you to handle and if you wanted to make them pretty you could do conversions to show them in MM:SS.SS format as well.
__________________
----------------
If we've helped you and you have solved your problem please post that it's been resolved so we know! The suspense kills me!

Reply With Quote
  #5  
Old May 13th, 2008, 11:07 PM
section6runs section6runs is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 section6runs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 17 sec
Reputation Power: 0
I think I found a solution for what I want to do. I think I'm going to try to store the performances as text and use a format of MM:SS.ss for running events and use the same format for distance (throws and jumps) that will be interpreted as FF:II.ii (where FF are feet, II are inches and ii are quarter inches).

I've played with it a bit with sample data and it seems to work.

The only thing I may have a problem with is sorting from fastest/longest to slowest/shortest because of it being a text field....we'll just have to see.

Thanks for the suggestions!

Reply With Quote
  #6  
Old May 14th, 2008, 07:18 AM
rpeare rpeare is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2008
Posts: 674 rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level)rpeare User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 7 h 38 m 37 sec
Reputation Power: 172
If you store your data with leading zeros you should be able to sort them. For instance:

Code:
Times
08:08:08 (8mins, 8seconds, 8 1/100ths of a second)
Instead of 
8:8.08


if you don't store the leading 0 something that is

10 minutes is going to appear before 8 minutes.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Running times for track & field events


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway