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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invoke Filter by Form

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Hello

Can anyone advise if their is applicable code that can either replicate or invoke the filter by form event and then apply the filter as I'd like to action this as on on click event of a command button on my form

The form does not have any subforms if it helps

Many Thanks

Costefran
 
How are ya Costefran . . .

Have a look at the following form events:
[blue] On Filter[/blue]
[blue] On Apply Filter[/blue]

The [blue]DoCmd Object[/blue] also has the following methods:
[blue] DoCmd.RunCommand acCmdFilterByForm[/blue]
[blue]DoCmd.RunCommand acCmdApplyFilterSort[/blue]
[blue] DoCmd.RunCommand acCmdRemoveFilterSort[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
In the Click event procedure of your button you may set the Filter and FilterOn properties of the form.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top