Results 1 to 6 of 6
  1. #1
    balderman is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55

    Query criteria help

    I need help please. I want the query to show records that are 3 days or more past the completed date. I can't seem to figure out how to get it to work. I googled it and tried many different things and nothing is working. Please let me know what I am doing wrong. Screenshot below.



    Click image for larger version. 

Name:	screenshot.jpg 
Views:	16 
Size:	163.0 KB 
ID:	33418

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Use <Date-3 as the criteria for completed date field
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    balderman is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55
    OK but shouldn't it be + and not - since I want to show 3 days or more AFTER the completed date?

  4. #4
    balderman is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55
    When I put that in it says "Data type mismatch in criteria expression"

  5. #5
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Quote Originally Posted by balderman View Post
    OK but shouldn't it be + and not - since I want to show 3 days or more AFTER the completed date?
    Quote Originally Posted by balderman View Post
    When I put that in it says "Data type mismatch in criteria expression"
    The idea is to check where completed date is more than three days ago
    Forgot the brackets. It should have been
    Code:
    <Date()-3
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  6. #6
    balderman is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55
    Ok I understand now. I was thinking of it the wrong way. Thanks so much for your help, it worked!

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

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2015, 12:45 PM
  2. Replies: 1
    Last Post: 11-13-2014, 11:34 PM
  3. Replies: 4
    Last Post: 08-30-2014, 10:23 AM
  4. Replies: 5
    Last Post: 09-20-2012, 03:27 PM
  5. Replies: 5
    Last Post: 08-02-2012, 09:44 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