Opening multiple forms in MS access97

  • Thread starter Thread starter Bharath
  • Start date Start date
B

Bharath

hi,
how do you open multiple instances of a form from another
form.i.e if i press a button on say form1, i need form2 to
be opened. continuous clicking should open more instances
of form2.

Thanks
Bharath
 
This opens only if the mentioned event cmdNewInstance_Click() mentioned in your website is fired from the newly opened form. If the event is fired from the original form theres only one form. ( We use MS Access '97


----- Bharath wrote: ----

hi
how do you open multiple instances of a form from another
form.i.e if i press a button on say form1, i need form2 to
be opened. continuous clicking should open more instances
of form2

Thank
Bharath
 
hello Allan
The code that you have suggested would open a new form only from the latest version of that form.each form is able to open up only one instance. but my problem is different. let me xplain.
say i have a list of names in one form's list box. on clicking a name, a new form should be opened which displays the details of that particular person. if i choose another name and click on it, it should open another form with that person's details without closing the one that was opened earlier. so i should atleast be able to have as many active windows as the number of persons in the list. hope you get what i want to convey
Thanks for your help and i hope u help me thro this too
Bharath
 
That is not the case, Bharath.

The issue is that you need to maintain a form variable for each instance
that you want open. Appending each instance to a custom collection allows
you to open as many as you need.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Bharath said:
hello Allan,
The code that you have suggested would open a new form only from the
latest version of that form.each form is able to open up only one instance.
but my problem is different. let me xplain..
say i have a list of names in one form's list box. on clicking a name, a
new form should be opened which displays the details of that particular
person. if i choose another name and click on it, it should open another
form with that person's details without closing the one that was opened
earlier. so i should atleast be able to have as many active windows as the
number of persons in the list. hope you get what i want to convey.
 
Back
Top