LARiot
Programmer
- Feb 7, 2007
- 232
Hi. Thanks for looking at this. Please read this (and all questions) carefully before replying. Thanks.
I'm trying to set subform visible property to false from event of command button that exists inside of subform. I'm getting "2165 You can't hide a control that has the focus". And yes I've tried changing the focuse but since the code is being executed from the button in the subform, the focus jumps right back before executing the next line.
Long story short:
How do you set subform visible property to false from with subform?
-Nima
"Pluralitas non est ponenda sine necessitate", i.e., "Plurality is not to be posited without necessity" aka K.I.S.S. (Keep It Short and Simple) -- Ockham's Razor
I'm trying to set subform visible property to false from event of command button that exists inside of subform. I'm getting "2165 You can't hide a control that has the focus". And yes I've tried changing the focuse but since the code is being executed from the button in the subform, the focus jumps right back before executing the next line.
Long story short:
How do you set subform visible property to false from with subform?
-Nima
"Pluralitas non est ponenda sine necessitate", i.e., "Plurality is not to be posited without necessity" aka K.I.S.S. (Keep It Short and Simple) -- Ockham's Razor