Simple and yet frustrating.
I've got a form (FORM1) which opens amodal form via a button.
User enters some value into the modal form and clicks OK, which calls a sub on FORM1 and changes a label on FORM1.
However, this label on FORM1 never changes.
I've seen this before, but can't remember how to fix this.
CODE:
FORM1
=====
Public Sub Change_Label1(ByVal str As String)
Me.Label_Dest_Info.Caption = str
Me.Label_Dest_Info.Refresh
End Sub
Private Sub Command_Dest_Click()
Set fSomeForm = New theForm
fSomeForm.Show 1
End Sub
Modal theForm
==========
Private Sub cmdOK_Click()
...
...
FORM1.Change_Label1 "CHANGE ME!!"
...
unload me
end sub
I've got a form (FORM1) which opens amodal form via a button.
User enters some value into the modal form and clicks OK, which calls a sub on FORM1 and changes a label on FORM1.
However, this label on FORM1 never changes.
I've seen this before, but can't remember how to fix this.
CODE:
FORM1
=====
Public Sub Change_Label1(ByVal str As String)
Me.Label_Dest_Info.Caption = str
Me.Label_Dest_Info.Refresh
End Sub
Private Sub Command_Dest_Click()
Set fSomeForm = New theForm
fSomeForm.Show 1
End Sub
Modal theForm
==========
Private Sub cmdOK_Click()
...
...
FORM1.Change_Label1 "CHANGE ME!!"
...
unload me
end sub