svenhoek
04-14-2003, 05:12 PM
I'm sure this is a very simple thing that I SHOULD know the answer to, but...
What's wrong with this code?
Private Sub cmdemployment_Click()
For Each Control In frmvision
If Control.Type = Frame Then
Control.Visible = False
End If
Next Control
fraemploy.Visible = True
End Sub
I have a form with multiple frames and I want each command button to hide all the other forms and only show one.
Thanks!
What's wrong with this code?
Private Sub cmdemployment_Click()
For Each Control In frmvision
If Control.Type = Frame Then
Control.Visible = False
End If
Next Control
fraemploy.Visible = True
End Sub
I have a form with multiple frames and I want each command button to hide all the other forms and only show one.
Thanks!