Link to home
Start Free TrialLog in
Avatar of Milewskp
MilewskpFlag for Canada

asked on

How to close Filter by Form view using code

When you click on the Filter by Form toolbar button, the active form changes to filter-by-form view. If you then click 'Close' on the Filter/Sort toolbar, the form reverts to normal view.
What is the code equivalent of clicking 'Close' on the Filter/Sort toolbar?
I've tried
   DoCmd.RunCommand acCmdClose
but I get
   Error: No current record.
Avatar of puppydogbuddy
puppydogbuddy

try this:
DoCmd.RunCommand acCmdCloseWindow

DoCmd.RunCommand acCmdRemoveFilterSort
ASKER CERTIFIED SOLUTION
Avatar of Milewskp
Milewskp
Flag of Canada 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
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator