Results 1 to 4 of 4

Thread: MDI form

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Nederland, Texas, USA
    Posts
    8

    Post

    How do i detect the active form in MDI?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Add this code somewhere in an event of your MDI parent

    Code:
        Dim frm As Form
        
        Set frm = Me.ActiveForm
        
        MsgBox frm.Name

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Nederland, Texas, USA
    Posts
    8

    Post

    Yes it worked, but not they way I need,
    frmMain = MDI FORM
    frmdocument = the multiple docemnt i call upon multiple times

    I need to know the name of the active docemnt, not the form......Thanks though

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Nederland, Texas, USA
    Posts
    8

    Post

    Yes it worked, but not they way I need,
    frmMain = MDI FORM
    frmdocument = the multiple docemnt i call upon multiple times

    I need to know the name of the active docemnt, not the form......Thanks though

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