Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 12th, 2006, 02:05 PM
bubarnet
Guest
 
Posts: n/a
Default best way to store time intervals

Hi,
(sorry for my bad english)

I'm using access for a complex database, and I need to create a calendar.
For exemple :
from the 1st of january to the 14th of february, I need to store a yes/no
value
from the 15th of february to the 25th of february, another yes/no
....

The database can handle lots of people, each with one calendar. The calendar
run for several years.
Is it a good idea to store data for each day of each year ? Or is there
another way ?

Thanks

--
Bubar - Les Studios Du Wapiti
Création de sites internet et de logiciels multimédias
http://www.wapitistudio.com


  #2  
Old December 12th, 2006, 03:05 PM
kingston via AccessMonster.com
Guest
 
Posts: n/a
Default Re: best way to store time intervals

Would this structure work for you:

PersonID StartDate EndDate YesNoValue

You'll have to verify that start and end dates are valid, but this structure
seems more efficient that storing each day for every person. You'd simply
check that a date is between a specific start and end date to return the
yes/no value.


bubarnet wrote:
Quote:
>Hi,
>(sorry for my bad english)
>
>I'm using access for a complex database, and I need to create a calendar.
>For exemple :
>from the 1st of january to the 14th of february, I need to store a yes/no
>value
>from the 15th of february to the 25th of february, another yes/no
>...
>
>The database can handle lots of people, each with one calendar. The calendar
>run for several years.
>Is it a good idea to store data for each day of each year ? Or is there
>another way ?
>
>Thanks
>
--
Message posted via http://www.accessmonster.com

 

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