Hi everyone! I was wondering if there is a away to use Access 97's
build in filter-by-form function but restrict its effect to just the
subform.
I have a parent form that shows the major divisions of the company,
and a subform that is linked so that it displays all the jobs within
the division in the parent form. I also want the ability to filter
the subform, so the users can pick out a bunch of common jobs easily.
I did this using a simple DoCmd.DoMenuItem command button to invoke
Access's filter-by-form.
Unfortunately, when this command button is hit (or even the
filter-by-form command invoked manually), the entire form, parent and
child, goes into filter mode; what's worse, if I enter a criteria
string into the subform, and leave the main form untouched, applying
the filter causes any filter criteria I had on the main form to be
lost. To top it all off, the main form is sent to the "first"
division record, so the user is now altering characteristics of an
entirely different division!
Is there a way to prevent the filter settings on the main form from
being altered while using the filter-by-form function on the subform?
Any suggestions would be greatly appreciated.
Alan