Results 1 to 3 of 3

Thread: Have I created that form yet?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    3

    Have I created that form yet?

    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

  2. #2
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327

    Lightbulb check if the form is initialized

    If you are creating a new form each time, you can check if the form has been created.
    Code:
    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...
    -scott
    he he he

  3. #3
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    ... 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 ?
    That's Mr Mullet to you, you mulletless wonder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width