Results 1 to 5 of 5
  1. #1
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53

    Time Type


    I need a field to indicate the amount of Time allocated for an event. There will not be any calculations from it. Just a record.

    Am I best to just use Short Text instead of a number? Like 22, 10, 72 minutes? Instead of a Date/Time Type?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Personally I'd use a numeric type, probably Long Integer, to store the number of minutes (or other appropriate interval). I wouldn't bet on the powers that be never wanting to calculate something. Total time for events in May or whatever. From number of minutes (or whatever) it's not hard to have a function that displays text. It's much harder to parse text to calculate later. In other words, you're more flexible with a numeric type than text.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    A Number (Long Integer or Double) would be better. And all entries in same unit of measure. Someday you'll find a reason to do calcs with it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    No calculations in this case. It is just telling competitors how much time is allowed. So if there is ten to hundreds of competitors their pre-printed scorecard shows the time allotted for that event. That's why I thought Short Text creates the least memory space. Like 4 places is big enough.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I think number data type uses less storage.
    But it's your db, do what you want.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 10-30-2017, 02:33 PM
  2. Run-time error 13 type Mismatch
    By Jaron in forum Programming
    Replies: 2
    Last Post: 09-13-2013, 02:33 PM
  3. how to set data type Time properly
    By ultra5219 in forum Access
    Replies: 2
    Last Post: 03-05-2013, 06:11 AM
  4. run-time error '13' type mismatch
    By teebumble in forum Forms
    Replies: 8
    Last Post: 12-03-2012, 01:18 PM
  5. run-time error 13 , type mismatch
    By Compufreak in forum Programming
    Replies: 8
    Last Post: 08-13-2012, 12:17 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums