D
Dennis Snelgrove
I'm using Access 2002 SP2. I've got a form which is primarily a shell - it's got a couple of command buttons, a listbox, and a large subform container.. The idea is that the database is an Event log in which the user may have to have several instances of the same form open at the same time. I'm setting it up so that the subform container will hold an entry form as a subform, and the listbox will be the device through which the user would change from one entry form to another. As an Event finishes, it gets saved and the listbox will lose the reference to that particular instance of the entry form. I'm using the tried and true method of making a new collection and adding the form to it as new Events happen and new instances are opened. We use several different entry forms depending on the situation.
The problem I'm having is that the subform container's SourceObject needs to have the name of the form being put in it, but the name of the forms in my collection are going be mostly the same, since we use multiple instances of the same form. I've tried to programmatically change the name of the form at the time it's created to insure that each form in the collection has aunique name, but I'm being told that the Name property is Read-only. The collection uses the hWnd value to index the forms, but I don't see how I canuse that to help me with setting the SourceObject property.
Has anyone got any suggestions? I know about the tabs ability in this version, but I'm avoiding those infavour of an interface that is much more controlled.
Thanks...
The problem I'm having is that the subform container's SourceObject needs to have the name of the form being put in it, but the name of the forms in my collection are going be mostly the same, since we use multiple instances of the same form. I've tried to programmatically change the name of the form at the time it's created to insure that each form in the collection has aunique name, but I'm being told that the Name property is Read-only. The collection uses the hWnd value to index the forms, but I don't see how I canuse that to help me with setting the SourceObject property.
Has anyone got any suggestions? I know about the tabs ability in this version, but I'm avoiding those infavour of an interface that is much more controlled.
Thanks...