Re: creating table with datatype smalltime

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 12/08/04


Date: Wed, 8 Dec 2004 10:11:49 -0500

You can't store this datatype directly into a table. You'll need to store
the data most likely as seconds (e.g., 1:09.65 will be stored as 69.65
seconds), and I would do this in a numeric field that has a Single field
size.

If you want to enter the data in the 1:09.65 format, you'll need to use a
textbox on a form to let you type that in, and then use programming to parse
it into the correct number of seconds. Same would be true if you want to
display the the data from seconds into your desired format.

-- 
        Ken Snell
<MS ACCESS MVP>
"Piet Geelen via AccessMonster.com" <forum@AccessMonster.com> wrote in
message news:87a7f63ba7e646d6bfff14727950f257@AccessMonster.com...
> Hallo,
>
> I want to create a table in a ACCESS database with the results of the
skating matches. Therefore I need a datatype where I can use the notation:
1:09:65 or 1:09.65 which means one minute and 9 seconds and 65 hundredth of
a second. I also want to calculate with these values.
> Is this possible? If so, how can I solve this problem?
>
> Thanks.
> Piet Geelen
>
> -- 
> Message posted via http://www.accessmonster.com


Relevant Pages

  • Re: Auto Number
    ... add a field named TransactionDate to store the ... the primary key. ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.tablesdbdesign)
  • Re: HELP ME!!!! I NEED TO DESIGN A DATABASE FOR COLLECTIONS
    ... you need to store? ... Duane Hookom ... MS Access MVP ... > collection so that you can retreive and report information about the ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Using Year in numbering
    ... First off what you STORE and what you SHOW are completely different in cases ... DateTime with a default value of =Nowso it will automatically capture the ... on the form you also have a TextBox with a ControlSource of... ... identifier in the desired format. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Using Value Lists
    ... > the lookup feature in Access to use a static value list as the possible ... > data for this list and store the key to the selected item in the orginal ... >> Dan Artuso, Access MVP ...
    (microsoft.public.access.forms)
  • Re: Return First character of First and last name
    ... > This is one reason why you store the names in separate fields. ... > <MS ACCESS MVP> ... >> first name and 1st character of last name into 2 columns. ...
    (microsoft.public.access.queries)