Multiple Instances of the same Form

shamas21

Registered User.
Local time
Today, 07:39
Joined
May 27, 2008
Messages
162
Hi All

I have two forms in my access application. Form 1 is a listview that is populated with unique Customer IDs. When the user double click the listview on the particular Customer ID then it loads Form2.

Form2 has many listviews within it such as a listview for the Customer telephone, another listview for their addresses etc and all the data presented in Form2 listviews are based on the Customer ID that the user clicked in Form1.

So here is my question.....

I want the user to be able to open Form2 with that particular details of the customer but also to go back to Form1 and double click another Customer ID and opens Form2 again (such as replicating Form2) with the other Customer details.

So the moral of the story is i want the user to be able to have many instances of Form2 open each time they wish to view a different Customer ID without having to close Form2 down every time.

Is this possible?

Thanks
 
Like I said, I've never needed it, but I'd guess not given this from the link:

NOTE: When you close the original instance of a form, all other instances of the form are closed as well.
 
What you need to do is to instantiate it from the class and at that time add it to a COLLECTION so that you can refer to its collection index.
 

Users who are viewing this thread

Back
Top Bottom