PDA

Click to See Complete Forum and Search --> : Have I created that form yet?


md_hiker
Jul 6th, 2001, 02:19 PM
Here's the set up in a nutshell.

I have a list of people. I click a name and a details window comes up. I want to be able to have numerous details windows open but I don't want to allow two of the same person so I can't use modal.

If there something I can interrigate to see if I've created a form yet?

TIA

Scott Penner
Jul 6th, 2001, 05:18 PM
If you are creating a new form each time, you can check if the form has been created.

if not frmDetail1 is nothing then
' Form is present

if frmDetail1.visible then
' Form is present and showing...
end if

end if


I hope that helps...

Paul Warren
Jul 10th, 2001, 12:00 PM
... or you could set the .Tag property of the form to the name of the person when you create it then loop through the forms, interrogating the tags before opening a new form. Or have the name the form the same as the person.

Is this enough of a pointer ?