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

    Form ComboBox Filter - Select ALL records

    I'm trying to filter records on a form with a ComboBox, and I want the option to return ALL records.
    My Form is: frmReview
    My ComboBox is: cmbGLimpact
    The RowSource is: SELECT DISTINCT [GLimpact] FROM Initiatives UNION SELECT Null As AllChoice FROM Initiatives ORDER BY [GLimpact] DESC;
    The Query Criteria is: [Forms]![frmReview]![GLimpact]
    The field values are: Yes, No & TBD

    The filter works fine for Yes, No & TBD, but the blank choice doesn't return all records.

    I need to be able to setup several filter ComboBoxes to enable filtering on several different fields. So, depending on which ComboBox filter (field) the user wants to filter on, the others will allow all records to be returned.

    Anybody know why this isn't working?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Need wildcard:

    Like [Forms]![frmReview]![GLimpact] & "*"

    Review: http://datapigtechnologies.com/flash...tomfilter.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

    Got it working

    Quote Originally Posted by June7 View Post
    Need wildcard:

    Like [Forms]![frmReview]![GLimpact] & "*"

    Review: http://datapigtechnologies.com/flash...tomfilter.html
    I made the changes above (adding "Like" and & "*") and it still didn't work. But after watching the video, I added a "Clear Filter" command button, and now it works.

    Thanks for your help. Muchly appreciated.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  4. Replies: 0
    Last Post: 12-16-2009, 01:14 PM
  5. Replies: 7
    Last Post: 05-24-2009, 10:24 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