Results 1 to 4 of 4
  1. #1
    kagoodwin13 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    181

    Changing combo-box to check box (a la Excel filter)

    On my search forms with combo-boxes, I was requested to change them to a combo-box with check boxes, similar to the filtering menu in Excel. I am curious as to how this is done. I found something similar with Multi-valued field queries on the Access help website: http://office.microsoft.com/en-us/ac...010149297.aspx



    However, my fields are not multi-valued. They store a single value for each field. I am wondering if I can still make this work somehow. Any suggestions?

  2. #2
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    If you want a drop-down a combo box that reveals check boxes (a la Excel) then, sorry this is not possible in Access.

    Could manage it with modal pop-up forms made to look similar to drop-down combo boxes but ... - do you really want to go to all that bother?

  3. #3
    kagoodwin13 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    181
    Thanks for your help. Is there maybe a way to implement some sort of Boolean logic? For instance, if my users want to search addresses in particular states, is there a way to search for "FL AND KY" for Florida AND Kentucky?

  4. #4
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    First, is the built-in Access feature not adequate?

    Click image for larger version. 

Name:	1.jpg 
Views:	4 
Size:	5.0 KB 
ID:	8655

    If not, it is possible to build dynamic sorts and filters through a combination of dialog forms, command/toggle buttons and vba code. (It might be possible to use macros instead of vba code but I've never tried; I can't see how to do the necessary SQL string handling with macros. It might also be appropriate to use shortcut menus on the corresponding field[s] but I haven't constructed a shortcut menu for years so I may be out-of-date.) However each such sort/filter takes some development effort so it is only worth considering for fields where the users will use the feature frequently. In your case you imply restricting the result set (retrieved records) to match one or more states. This seems worthwhile if the number of addresses is large but I can't help thinking you would be duplicating the built-in Access feature.

    Get back to me if you need any more help or advice.

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

Similar Threads

  1. Datasheet Filter with Check Boxes
    By EddieN1 in forum Forms
    Replies: 1
    Last Post: 05-17-2012, 06:53 PM
  2. changing a check-box to an option box
    By lbn in forum Access
    Replies: 3
    Last Post: 08-14-2011, 02:25 PM
  3. Importing ever-changing Excel data
    By jtf1972 in forum Database Design
    Replies: 7
    Last Post: 08-05-2011, 11:24 AM
  4. Filter by Form: Check Boxes.
    By tbh7x in forum Forms
    Replies: 0
    Last Post: 08-18-2010, 09:15 AM
  5. Changing data in excel from access
    By ricardo9211 in forum Import/Export Data
    Replies: 1
    Last Post: 08-26-2009, 01:46 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