Results 1 to 3 of 3
  1. #1
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185

    Question Query return for date ranges.


    I have a query With fields:

    MT2AuditDate (date/time) and
    MT2NextAuditDue (date/time)

    The NextAuditDue will always be 90 days after the AuditDate.

    My question is how do I set the criteria for this record to show up in the query 30 days before the NextAuditDue date and remain in the query until the AuditDate is set to a new date?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    One way would be to create a calculated field in a query; let's call it NextLess30 . set it to be of course using the NextAuditDate minus 30 days. (As an advanced beginner you will want to get to know the DateAdd method if you haven't already - very helpful).

    So now with this value - you can easily set your criteria using your Next column and your new NextLess30.

    Hope this gets you going in the right direction.

  3. #3
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185
    Thanks a lot. That is very helpful. I haven't tried to put it into action yet but when I do I will post the answer in for forum purposes.

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

Similar Threads

  1. Select Query Using Different Date Ranges
    By Hemi426 in forum Queries
    Replies: 3
    Last Post: 07-26-2010, 01:06 PM
  2. Ranges: Correlating Data in 2 tables
    By JShep in forum Queries
    Replies: 8
    Last Post: 03-22-2010, 05:10 PM
  3. summing values associated with date ranges
    By wdemilly in forum Reports
    Replies: 0
    Last Post: 07-17-2009, 01:53 PM
  4. return last updated date for each product
    By jonnyuk3 in forum Queries
    Replies: 0
    Last Post: 06-17-2009, 04:38 AM
  5. Replies: 4
    Last Post: 01-29-2009, 02:43 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