Results 1 to 3 of 3
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Checkbox filter

    Hello all,

    On my continuous form, I have a field that is a checkbox. I would like to place an unbound checkbox/radiobutton in the form header so that when the it is checked, it will display only records that are checked, and when it is unchecked, it will only display records that are unchecked.

    Any help will be greatly appreciated!



    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Code:
    sub chkBox_AFTERUPDATE()
    
    me.filter = "[field] = " & chkBox.value
    me.filterOn = true
    
    end sub

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Thanks for the reply, I created a Combobox with Yes/No values and am using that. Thanks though ranman!

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

Similar Threads

  1. Filter checkbox upon opening form
    By vickster3659 in forum Programming
    Replies: 9
    Last Post: 11-06-2014, 10:58 AM
  2. Checkbox Filter?
    By 82280zx in forum Forms
    Replies: 7
    Last Post: 03-14-2014, 10:35 AM
  3. button to table checkbox filter on form
    By Ruegen in forum Forms
    Replies: 3
    Last Post: 10-08-2013, 05:42 PM
  4. Replies: 27
    Last Post: 01-21-2013, 02:43 PM
  5. Checkbox filter on a form
    By aletrindade in forum Access
    Replies: 1
    Last Post: 12-02-2009, 06:22 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