Results 1 to 3 of 3
  1. #1
    Mordred is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Location
    Winnipeg, MB. Canada
    Posts
    8

    Populating 10+ Years of Dates Table

    Hi all,

    I have created a Dates table in Acces 2003 that has the following attributes:


    DateID (PK), Days, Months, Quarters, & Years. I was wondering if there was a way to populate this table, which will span 10+ years, without manually doing it? While I have worked with Access in the past, I have yet to create a table like this. Any help is appreciated.

  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,641
    Probably, but it's not clear to me what the data would look like. Generally, a For/Next loop or a Do/While loop that steps through your dates, using the AddNew method of a recordset to add records.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    it should also be noted that a function to do this, using days over a 10 year timeframe would equal:

    365*10 = 3650 records ~ <.5 seconds of processing time.

    100 years = 36500 records ~ 2-3 seconds of processing time, if that.

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

Similar Threads

  1. Populating a form with table data!
    By Extracash in forum Forms
    Replies: 6
    Last Post: 09-13-2010, 05:47 AM
  2. Auto Populating a field in a table
    By softspoken in forum Access
    Replies: 11
    Last Post: 04-05-2010, 02:52 PM
  3. Replies: 4
    Last Post: 06-10-2009, 12:43 PM
  4. Calculated Text Box Populating in Table
    By Debbie in forum Access
    Replies: 2
    Last Post: 11-13-2006, 08:02 AM

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