I have 2 forms, Form1 is a modal form. On click of a button i want to open Form2
Form1 code
With Form2
.CalledfromForm1 = True
Me.Hide
.Show
.ZOrder
End With
On close of Form2 i want to show the hidden modal form with all the values entered in the textboxes intact...
Form2 code
Private Sub cmdClose_Click()
If CalledFromForm1 = True Then
CalledFromForm1 = False
Form1.Show
End If
End Sub
This doesnt seem to be working!! the form opens but the values in the textboxes are lost. Do you know if there is any property i have to set or something? ZOrder doesnt seem to work either!!!
zorder for forms:
should bring it to the top.
the other issue with fields changing? has no bearing on the zorder. unless you coded it that way. show some code - maybe others will be able to fill in.