Dim NewPatientForm1 As frmPatient Dim NewPatientForm2 As frmPatient Private Sub cmdAddForm_Click NewPatientForm1.Show NewPatientForm2.Show End Sub Private Sub cmdDisplayValues debug.print NewPatientForm1.Text1.Text 'here I want NewPatientForm1 debug.print NewPatientForm2.Text1.Text 'here I want NewPatientForm2 Stop End Sub>I'm workign with multiple instances of a form for the first time and it's been going well till just now. I need to add nodes to a tree on a multiple instanced form from another modal form. When i try and add the node from the modal form it fires the Form_Load event of the form with the tree control. This was driving me nuts for awhile until i realized that I am not working with just the form itself but an instance of the form (I'm still guessing at this point but oh well). ow do I refernce a particular form if there are multiple instances?
>Private Sub cmdAddForm_Click >Dim NewPatientForm1 As frmPatient >Dim NewPatientForm2 As frmPatient > > NewPatientForm1.Show > NewPatientForm2.Show > >End Sub > >Private Sub cmdDisplayValues > > debug.print frmPatient.Text1.Text 'here I want NewPatientForm1 > debug.print frmPatient.Text1.Text 'here I want NewPatientForm2 > Stop > >End Sub >