MarkK
bit cruncher
- Local time
- Today, 12:46
- Joined
- Mar 17, 2004
- Messages
- 8,614
Your feelings are totally fair here and I don't want to tread on those, but you don't have this explicit reference when you open a default instance. Why should you need it for your non-default instances when it doesn't exist for your default instances?Like Galaxiom, I tend to feel that it's better to be able to explicitly have a reference.
Wouldn't we all love to be freed from the oppression of DoCmd.OpenForm(), and be able to treat forms more like classes???
Mark
ps, How I discovered this was using a form/subform arrangement where the subform maintained a strongly typed variable reference to the mainform (in order to expose it as a strongly typed object in the subform's code) and I noticed that non-default instances did not wink out of existence when I destroyed their host collection/variables. Then it was just a short step to realize a form could support it's own reference to itself as the mechanism to keep itself alive, without external references, making it behave much more like a default instance.