Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5866
  • Last Modified:

Removing Filter from a subform (datasheet)

I have a form that has a subform.
The subform is a datasheet.
The user can use the standard "filter" funtions in the datasheet.

I need some VBA so that when I click on a button on the MAIN form ... the filters will be removed from the Subform.

How do I use VBA to remove all filters from the subform?
0
Patrick O'Dea
Asked:
Patrick O'Dea
1 Solution
 
Gustav BrockCIOCommented:
The button is already there - below the datasheet: Filter.
Just click it, and the filter is turned off.

/gustav
0
 
Rey Obrero (Capricorn1)Commented:
Me.<NameOfSubformControl>.Form.Filter = ""
me.<NameOfSubformControl>.Form.FilterOn=True
0
 
Patrick O'DeaAuthor Commented:
Thanks, just perfect.

(Much friendlier for the novice users of my system)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now