Results 1 to 2 of 2
  1. #1
    hoachen is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    17

    Filter last day of the week

    I have two fields in a table that contains date and week#. Currently, I filtered manually the date using "between" the start date and end of the current week date.

    For example.
    start date: 1/1/2010
    Last day of the week would be 9/25/2011 since 10/1/2011 and 10/2/2011 have not arrive.

    Week# DateField


    Criteria: between 1/1/2010 and 9/25/2011.

    This is not very practical since I have to change it very week. The reason I do this is I don't want the data shows on the week that have not yet past. In this example if I didn't specify the stop date (9/25/2011) then I will show the week 39 data(from 9/26 to 10/2/2011) which is incomplete due to two more day have not come.I want it to check it automatically in which if the current week have not past then stop at the last day of previous week.

    I've searched the net but didn't find one that allow me to do what I need most just shows the current week such as DatePart, DateAdd.
    Please advise

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You could create a search form that would allow you to specify the dates you wish to search between. Look at this example

    http://www.datapigtechnologies.com/f...earchform.html

    Alan

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

Similar Threads

  1. How to group by week
    By accessmatt in forum Reports
    Replies: 21
    Last Post: 09-28-2011, 09:40 AM
  2. Replies: 3
    Last Post: 07-10-2011, 05:37 AM
  3. Week Totals
    By Azyrus in forum Reports
    Replies: 2
    Last Post: 06-26-2011, 04:21 PM
  4. Form to Filter Report by Week Number
    By jortizz in forum Forms
    Replies: 1
    Last Post: 05-18-2011, 09:30 AM
  5. week overview
    By FSCHAMP in forum Programming
    Replies: 3
    Last Post: 12-23-2010, 06:23 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