The filter by form button is part of the standard menu. If for some reason you wish to create your own button the VBA code is:
DoCmd.RunCommand acCmdFilterByForm
Once the FilterByForm command is invoked it disables any button controls you have on your form, thus you cannot have a button that applies the filter. However a filter menu bar also appears when the Filter command has been invoked.
Hope this helps. ljprodev@yahoo.com
Professional Development
MS Access Applications
Greetings. I usually create a new toolbar and then add the commands that I need (filter by form, apply filter, clear grid, sort asc, sort desc) Then this is avaialble in all screens.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.