Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In Access 2007 - Adding a Clear All Filters Button 1

Status
Not open for further replies.

McLiguori

Technical User
Mar 27, 2003
90
IT
I know that the Ribbon and the right click provides a "clear all filters" option. But, I want to add a button to a form that will do this. It is not one of the options available in the Control Wizard.

Thanks for any help you can give.

McLigs
 
You can reset the forms recordsource. On the OnClick event of the button, place:

Private Sub Command101_Click()
Dim SQLText
Dim holda As Integer
SQLText = "Select * From [tblTable] "
Forms![FormName].RecordSource = SQLText
End Sub

Substitute your table name and form name.
 
Thanks so much fneily. Did the trick perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top