Thanks Dawn, that does help but isn’t necessarily what I’ll be going for. I sort of modified my requirements to simply provide a yes/no msgbox that’ll ask whether or not the user want to continue (based on how much of tab1 they fill out)
The below code worked a single time when I wasn’t paying attention & I’ve been unable to get it to run since. I hate the fact that a single click on a tab doesn’t yield the click event (which calls temp sub below)
I’d like a single click on tabCPR to execute the below but it doesn’t.
'the cpr tab...
Private Sub tabCPR_Click()
Me.CPR_Date.setFocus
Call temp
End Sub
'temp procedure...
Private Sub temp()
'verify user has ALL cpr details to be entered...
MsgBox "Do you have all CPR details required to be input?", vbYesNo, "Error"
'if user clicks no then prevent any cpr details to be entered...
If MsgBox("Do you have all CPR details required to be input?", vbYesNo, "Error") = vbNo Then
MsgBox "You cannot enter CPR details at this time", vbExclamation, "Error"
Me.Page1.setFocus
Exit Sub
End If
End Sub