adam_fleck
Registered User.
- Local time
- Tomorrow, 00:20
- Joined
- Apr 30, 2004
- Messages
- 85
When a filter is removed from a subform, any filter that had been applied to the main form is removed too. This a nuisance. I've got a work around but it's ugly.
Here's what happens. Right clicking the subform calls up a custom menu that has a custom Remove Filter option. This in turn calls a function that runs the code:
forms("main_form")("sub_form").form.filter = ""
For no reason that makes sense to me, this also removes any filter that has been applied to main_form. My work around is to trap the main_form filter and the current main_form record, reapply the main_form filter, and navigate back to the record that was current.
This sort of works, but I'm wondering if anyone knows of a way of turning off what seems to me to be a really silly bit of behaviour.
Here's what happens. Right clicking the subform calls up a custom menu that has a custom Remove Filter option. This in turn calls a function that runs the code:
forms("main_form")("sub_form").form.filter = ""
For no reason that makes sense to me, this also removes any filter that has been applied to main_form. My work around is to trap the main_form filter and the current main_form record, reapply the main_form filter, and navigate back to the record that was current.
This sort of works, but I'm wondering if anyone knows of a way of turning off what seems to me to be a really silly bit of behaviour.