Results 1 to 2 of 2
  1. #1
    netguy is offline Novice
    Windows 8 Access 2007
    Join Date
    Sep 2014
    Posts
    16

    Date

    I have a field in by database called ACT_DATE. This is the date an item is scheduled to be completed. I want to create a query that when exec regardless of the day of the week it is, will look for any records that fall within that week.



    Like for example:
    SELECT Count(tbl_Activities.ACT_DATE) AS [This Week]
    FROM tbl_Activities
    WHERE tbl_Activities.ACT_DATE >= DATEADD(wk, DATEDIFF(wk,0,DATE()), 0) AND <= DATEADD(wk, DATEDIFF(wk,0,DATE()), 4);

  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,652
    This is marked as solved; if so, posting the solution could help others later.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 11
    Last Post: 07-20-2014, 06:22 PM
  2. Replies: 3
    Last Post: 03-11-2014, 07:32 PM
  3. Replies: 2
    Last Post: 07-09-2013, 06:31 PM
  4. Replies: 3
    Last Post: 08-21-2012, 03:05 PM
  5. Replies: 15
    Last Post: 04-06-2012, 10:57 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