1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: AC2007 Find Date()-1 And Date()-2 in Query

Discussion in 'Business Applications' started by vmf, Jul 17, 2012.

Thread Status:
Not open for further replies.
  1. vmf

    vmf Thread Starter

    Joined:
    Apr 26, 2012
    Messages:
    25
    Hello, I am having trouble finding the previous 2 days totals in a query. I have a totals query with the following fields:
    JobID - Criteria: Between 500 And 599
    WorkType
    JulianDate
    Batch
    TotalProcessed - calculated field, grouped on Sum. sums field entry
    ProdDate - Short Date - Grouped on Where - Criteria Date()-1 Or Date()-2

    Today's Julian Date is 199 so query should give me Julian Dates 197 & 198, but instead returns Julian Dates 188 - 196.

    Thank you for your help!
     
  2. OBP

    OBP Trusted Advisor

    Joined:
    Mar 8, 2005
    Messages:
    19,658
    The criteria that you should use for a date period is
    Between Date()-1 and Date()-2
     
  3. vmf

    vmf Thread Starter

    Joined:
    Apr 26, 2012
    Messages:
    25
    Thank you so much!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1061431

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice