Results 1 to 2 of 2
  1. #1
    kattatonic1 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Location
    Toronto, Canada
    Posts
    77

    Filter By Form blanks out buttons including ApplyFilterSort

    Using Access 2010. My users would love to use the Filter By Form feature. I am trying to set up simple buttons for this seemingly simple technique.

    So I have a successful button that executes just this code:


    DoCmd.RunCommand acCmdFilterByForm
    DoCmd.RunCommand acCmdClearGrid

    Hooray! That is, it takes them to the cleared form to allow them to type in &/or select criteria for their search. Now I need a button to allow them to execute the filter. Sounds simple!

    I have created a button with just this code:
    DoCmd.RunCommand acCmdApplyFilterSort

    That button however gets greyed out every time the Filter By Form mode is activated. So we can't use the button exactly when we need it.

    Any ideas?

    Kay in Toronto

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Filter by form is going to use Access' Wizard to get parameters from the user. The wizard will take over until after the user exits. One alternative is to....

    Programmatically adjust the form's filtrer property.

    Me.Filter = "Insert Where Criteria Here."
    Me.FilterOn = True

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

Similar Threads

  1. Filter By Form and Apply Filter Buttons
    By JustLearning in forum Forms
    Replies: 13
    Last Post: 02-18-2015, 01:01 PM
  2. Filter not working from touch buttons
    By anchamal in forum Forms
    Replies: 3
    Last Post: 09-22-2013, 04:21 PM
  3. Replies: 1
    Last Post: 04-10-2013, 11:50 AM
  4. Creating FILTER Buttons
    By Kipster1203 in forum Forms
    Replies: 9
    Last Post: 06-17-2010, 09:31 AM
  5. Access filter does not show blanks
    By Jaricketts in forum Access
    Replies: 1
    Last Post: 03-26-2010, 05:38 PM

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