Results 1 to 3 of 3
  1. #1
    denny is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    3

    query with next hundred days

    i would like a query (or table) that when run all it does is list todays date and the next 100 days.



    09/05/2011
    09/06/2011
    09/07/2011

    etc

    how would i do this,
    thanks
    Last edited by denny; 09-05-2011 at 07:22 AM. Reason: query or table addon

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    why do you want it? asking because more than likely, the reason you want it is not legit. thus, another method to get to the gold at the end of the rainbow here would make more sense.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    in the criteria of your query you simply have to put the two dates to make a date range

    first step is to do it manual & fixed:
    >=9/1/11 AND <= 12/1/11
    see if that works ok as a sanity check

    then modify it to make it dynamic
    >=Now() AND <=Now()+100

    Now() will include time stamps, not just date. Depending on the field properties this can alter the results. So you will want to modify this code with FORMAT or consider using Date() ; I haven't done this in awhile and this isn't exactly precise code but should put you on the right path.

    Hope it helps.

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

Similar Threads

  1. query for times over differrent days
    By gaz100uk in forum Queries
    Replies: 3
    Last Post: 07-27-2011, 10:06 AM
  2. Run Query based on date for Multiple days
    By jedwards85 in forum Access
    Replies: 3
    Last Post: 03-29-2011, 12:04 PM
  3. Replies: 1
    Last Post: 11-12-2010, 01:16 AM
  4. number of days query
    By osuprog in forum Queries
    Replies: 15
    Last Post: 09-17-2010, 01:15 PM
  5. Select Dates between days and two days ago?
    By rstonehouse in forum Queries
    Replies: 4
    Last Post: 08-18-2010, 02:13 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