Results 1 to 4 of 4
  1. #1
    nebula81 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    4

    Create Table between Start date and end date..help...

    Hi,

    I have a form that can enter start date and end date.
    I want to create a table which contains a list of date between start date and end date. i know that from query we can write SQL to create the table but i don't know how. The data of the table will change according to the start date and end date.

    Example:
    Start Date : 1/1/2000
    End date : 1/1/2004

    The table will list all dates between the Start Date and End Date.


    But, if the Start Date and End Date change, it will delete the current data and create a new list of dates between the new start date and end date.

    Really need help because i have browse the internet searching for the correct SQL but failed.


    Thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    AFAIK, a query cannot do this. Need VBA code. Why do you need this table?
    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.

  3. #3
    nebula81 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    4
    Hi June 7,


    hmmm...VBA code...i tought can create by writing SQL in query.


    tQ!

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    If you have some reference that gives impression this is possible by query, post link to it for review.
    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. Between [start date] and [end date] won't work
    By BCJourney in forum Queries
    Replies: 7
    Last Post: 01-17-2013, 10:01 AM
  2. Replies: 16
    Last Post: 11-14-2012, 01:39 AM
  3. Replies: 15
    Last Post: 04-06-2012, 10:57 AM
  4. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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