Results 1 to 3 of 3

Thread: Display is Form!!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    95
    How do I display more than one instance of a Form????


    For example. Let's say we have a form called frmhello

    i have to be able to click a command button and have it load up frmhello everytime. so, each time i click it, another frmhello loads up.

  2. #2
    Addicted Member curlywink's Avatar
    Join Date
    Mar 2000
    Location
    Manila, Philippines
    Posts
    141
    Hi zej,

    'wanna try this ...

    Private Sub Command1_Click()

    Dim fNew as new frmhello
    fNew.Show

    End Sub


    Hope this can help ...

  3. #3
    Guest
    I think you might need a Set statement in there.

    Code:
    Private Sub Command1_Click() 
    
       Dim NewForm as new frmhello 
       Set NewForm = frmhello
       NewForm.Show 
    
    End Sub

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