Results 1 to 3 of 3
  1. #1
    jhrBanker is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    68

    Filter form records by Date with Combo box

    I have a form based on a query. Each record in the query has a "Date Entered". Multiple records can have the same "Date Entered". How can I add a filter combo box to the form to filter the records based on the date selected in the combo box. I want the combo box to contain all of the available dates in the query, and I want all records to be displayed if no date is selected in the combo box. It would also be desireable to have the default value of the combo box be the maximum (lastest) date in the query.

    I'm using Access 2007.


    Form name: frmReview
    Query name: qryFrmReview
    Field name: Entered

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Create a query that groups all of the dates in the original query (or more likely in the table), sort as preferred. Use this newly created query as your combo box source. In the On Update property of the combo box, re-filter the form. You may have to edit your original query to look at the combo box before opening and if null pull all records.

  3. #3
    jhrBanker is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    68
    Thanks for the response, but you really haven't answered my question. I've created the query to use a the Combo Box source, and I'm able to filter the records by the date selected in the Combo Box. What I haven't got is the option to select all records regardless of date.

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

Similar Threads

  1. Replies: 21
    Last Post: 04-29-2015, 11:57 PM
  2. Replies: 3
    Last Post: 06-02-2012, 07:39 PM
  3. Filter A Form With Combo Box
    By JeffG3209 in forum Forms
    Replies: 15
    Last Post: 05-27-2011, 09:04 PM
  4. Filter my form from combo box
    By Angate in forum Forms
    Replies: 3
    Last Post: 04-24-2010, 01:57 PM
  5. Filter Form records with Combo Box????
    By jgelpi in forum Forms
    Replies: 0
    Last Post: 05-19-2009, 07:05 AM

Tags for this Thread

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