Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Posts
    7

    Fill date.

    Hi,

    I have a date table and there is only one column called "Date"

    I want to fill date between 01/01/2011 to 12/31/2011 in "Date" column through query.



    Thanks & Regards,
    Kashif.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Date is a RESERVED word and should not be used by you as the name of an object. http://www.allenbrowne.com/AppIssueBadWord.html
    Then I would question the value of a table with only one field. And lastly, I don't think you can do that with a query. It will probably take a Recordset and a loop in code. Care to share WHY you feel you need such a table? There may be a more efficient way to achieve what you want.

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I use such a table in a few occasion.

    I just go to Excel and fill a series of dates from 1/1/2011 to 12/31/2011, then copy and paste to a table in Access.

    I use such a table to get all dates in a year, use left join with other tables to fill some data. I need this table because other tables don't have every date in them but I need all dates in the result.

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

Similar Threads

  1. Zero fill
    By rbtrout in forum Queries
    Replies: 6
    Last Post: 01-14-2011, 06:36 PM
  2. Auto-Fill names
    By jlclark4 in forum Forms
    Replies: 10
    Last Post: 12-13-2010, 03:04 PM
  3. Auto-Fill
    By sophiecormier in forum Programming
    Replies: 3
    Last Post: 10-02-2010, 08:29 AM
  4. Fill One text box from the other
    By adsm in forum Forms
    Replies: 4
    Last Post: 08-17-2010, 10:28 AM
  5. Auto fill a table?
    By newtoAccess in forum Access
    Replies: 3
    Last Post: 11-21-2009, 08:21 PM

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