Results 1 to 4 of 4
  1. #1
    bjbielski is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Pennsylvania
    Posts
    2

    Post Show how many records were completed in current week and previous week

    Here is my current formula, however, its giving me a negative number rather than a positive.  The result is giving me how many records were completed last week based on the "completion_date".

    Previous Week: Sum(+Year([Completion_date])*53+DatePart("ww",[Completion_date])=Year(Date())*53+DatePart("ww",Date())-1)



    Result: -1 and thinking is should be 1

    I also need a formula to show me how many records were completed this week. Please help.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,285
    If I'm following it right, you're summing a Boolean expression (X=Y), so the result of -1 means True or 1 true result, since true is represented by -1. Does it return -2 when you think it should be 2? If so, meaning it returns the correct result but negative, you can wrap the whole thing in the Abs() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bjbielski is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Pennsylvania
    Posts
    2
    pbaldy...that worked. thank you very much

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,285
    No problemo!
    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. Parameter Value = Monday of the current week VBA
    By bcn1988 in forum Programming
    Replies: 4
    Last Post: 09-13-2013, 10:35 AM
  2. Start a report on week 40 of a week count
    By aspitalnick in forum Reports
    Replies: 8
    Last Post: 11-28-2012, 04:53 PM
  3. Displaying Previous Week's Data in Subreport
    By mejia.j88 in forum Reports
    Replies: 3
    Last Post: 06-30-2012, 01:07 PM
  4. Replies: 4
    Last Post: 01-23-2012, 08:21 AM
  5. DSum where data is from previous week only
    By doodles in forum Access
    Replies: 3
    Last Post: 01-31-2011, 08:35 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 - Senior Forums