Link to home
Start Free TrialLog in
Avatar of Eirman
EirmanFlag for Ireland

asked on

Cannot enable Apply Filter / Sort button

My form has no toolbar visible (by design)
I have a Command Button that activates Filter By Form (works fine)
My Apply Filter / Sort Command Button is greyed out and I cannot enable it.

Any ideas ?

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eirman

ASKER

so you cant even use the click event of a textbox disguised as a command button
I had already tried that!

Would a temporary Pop-Up form with three buttons work?
  • FILTER BY FORM
  • APPLY FILTER
  • CLEAR ALL FILTERS
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eirman

ASKER

Many Thanks

I'll probably use a custom toolbar in the short term and develop a separate search form
Avatar of Eirman

ASKER

Toolbars & QAT are still hidden. I settled for this ...

FILTER BY FORM ............... Command Button > DoCmd.RunCommand acCmdFilterByForm
APPLY FILTER .................... Right Click on Form > Apply Filter/Sort
CLEAR ALL FILTERS ........... Command Button > DoCmd.RunCommand acCmdRemoveAllFilters

EDIT: This is better than acCmdRemoveAllFilters as it produces no errors if there is no filter in place.
Me.FilterOn = False
Me.Refresh

Open in new window