M
Max Moor
Hi All,
I've got a form I want to open multiple copies of. It will have a
subform like a checkbook register that displays different accounts' entries
from a general ledger. For example, the general ledger may have entries for
two accounts: Bank1 and Bank2. I want to be able to open a Bank1 register
form and a Bank2 register form at the same time, using the same base form.
I've been reading up on how to manage multiple instances of a form.
Allen Browne has a nice write up using a collection and the hWnd value to
keep track of the various instances.
Is there a way to pass OpenArgs when instanciating a form with the New
keyword?
If not, I considered opening each form hidden, then calling some public
interface function that I could pass the filter info to. That function would
finish the forms setup and make it visible. Is there a better method than
this that is safer or better practice?
Thanks & Regards,
Max
I've got a form I want to open multiple copies of. It will have a
subform like a checkbook register that displays different accounts' entries
from a general ledger. For example, the general ledger may have entries for
two accounts: Bank1 and Bank2. I want to be able to open a Bank1 register
form and a Bank2 register form at the same time, using the same base form.
I've been reading up on how to manage multiple instances of a form.
Allen Browne has a nice write up using a collection and the hWnd value to
keep track of the various instances.
Is there a way to pass OpenArgs when instanciating a form with the New
keyword?
If not, I considered opening each form hidden, then calling some public
interface function that I could pass the filter info to. That function would
finish the forms setup and make it visible. Is there a better method than
this that is safer or better practice?
Thanks & Regards,
Max