tvanstiphout
Well-known member
- Local time
- Yesterday, 19:57
- Joined
- Jan 22, 2016
- Messages
- 650
Access splitforms have their issues, so I wanted to write my own lookalike.
Open mySplitForm, and observe you can navigate using the mainform, or the unbound listbox. To make this a generic module I am using form subclassing. So far so good.
Now filter the mainform. You will get an error because m_fldPK has lost its value. Why is that?
The subclass' Terminate method has not been called. There is no code to set this variable to Nothing. The Form_Open event is not called again to create a new instance of the subclass.
Maybe this is an Access bug?
Open mySplitForm, and observe you can navigate using the mainform, or the unbound listbox. To make this a generic module I am using form subclassing. So far so good.
Now filter the mainform. You will get an error because m_fldPK has lost its value. Why is that?
The subclass' Terminate method has not been called. There is no code to set this variable to Nothing. The Form_Open event is not called again to create a new instance of the subclass.
Maybe this is an Access bug?