I've got a form with 8 pages and I'd like to ensure that all the pages are clicked (ie. filled out) before the user can close the form.
And I've got a subform on one of the pages that is a tab control with 2 pages. What I want to do is make sure that the user has filled out (clicked on) both pages before the main form can close.
I don't really know the best way to go about this.
What I've got so far is:
Private Sub tabcontrol_Change()
If (tabcontrol.value = 1) Then
page2clicked = True
End If
End Sub
And this records if the second page of the subform was clicked or not. But I don't know what to do with this to prevent the main form from closing.
I could also use this for the 8 pages on the main form but I don't know if this is sufficient or not.
Maybe.... hide the close button?
I'm open to any ideas of the best way to go about this problem.
Thanks!
EDIT: If this is not easy (I'm guessing its not) then is there a way to make the 2 tabs on the subform tab control more visible for the user to see?