Results 1 to 4 of 4
  1. #1
    Stan 2314 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    3

    Filter by date in Query


    I have a manufacturing schedule I am working on and I would like to make a query that shows only records that have a date of today or later.

  2. #2
    Beetle is offline Unrelatable
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    Camp Swampy (Denver, CO)
    Posts
    207
    Then create your query and use criteria like;

    [YourDateField] >=Date()

    It would look like this in the QBE grid;

    Click image for larger version. 

Name:	Capture.PNG 
Views:	8 
Size:	8.4 KB 
ID:	12212

    Now, you can place this criteria directly in your query if you want, but it is usually better to use a form reference because users are normally (or should be) dealing with forms, not directly with queries. So on a form you would have a text box where a user would enter a date value, or the text box could have a default value of Date(), and the query would reference that form control. The criteria in the query would then look like;

    >=Forms!YourForm!txtDateBox

  3. #3
    Stan 2314 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    3
    Thanks for your responce. I am planning on working off a form but if I want to show today and future dates would it look like >=Date(today) ?

  4. #4
    Stan 2314 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    3
    I just tried it the way you said and it does what I want. Thank you so much.

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

Similar Threads

  1. How to filter last date using Dmax
    By glen in forum Reports
    Replies: 4
    Last Post: 11-12-2012, 09:45 AM
  2. filter date from Query pass down to report
    By geraldk in forum Reports
    Replies: 1
    Last Post: 08-17-2012, 10:14 AM
  3. Query/Filter by Date
    By jasonbarnes in forum Reports
    Replies: 6
    Last Post: 01-04-2012, 04:05 PM
  4. Date Range filter in a Duplicate query
    By knickolyed in forum Forms
    Replies: 0
    Last Post: 06-27-2011, 04:56 AM
  5. Filter by date
    By adsm in forum Forms
    Replies: 3
    Last Post: 08-20-2010, 06:50 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