I'm assuming you mean you want to be able to view one or other of the sub forms.
If this is the case....
Put both sub forms on your form, one on top of the other. set the visible property of one of them to false.
in your command button click do
Private Sub cmdToggle_Click()
If frmSubOne.Visible Then
frmSubOne.Visible = False
frmSubTwo.Visible = True
Else
frmSubOne.Visible = True
frmSubTwo.Visible = False
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.