scottsanpedro
Programmer
Hi,
From form1 i'm running a click button event to open an instance of another form I have created. (just playing around) I want to do it by creating an instance of that form and passing a value in.
I have a property let in the other form (frmTest) as this#
and when I click on form1 I have this
when I click the frmTest appears and disappears instantly.
How do I get it to stay?
Thanks in advance. Scott
From form1 i'm running a click button event to open an instance of another form I have created. (just playing around) I want to do it by creating an instance of that form and passing a value in.
I have a property let in the other form (frmTest) as this#
Code:
Public Property Let TextValue(txtValue As String)
If Len(txtValue) > 0 Then
Me.TextClass.Value = txtValue
End If
End Property
and when I click on form1 I have this
Code:
Private Sub Command0_Click()
Dim oFrm As Form_frmTest
Set oFrm = New Form_frmTest
oFrm.TextValue = "ScottNew"
oFrm.SetFocus
End Sub
when I click the frmTest appears and disappears instantly.
How do I get it to stay?
Thanks in advance. Scott