In the unload event of my Navigation Subform I have the following code.
If MsgBox ("Changes have not been locked and will be lost. Do you wish to proceed?", vbYesNo) = vbNo Then
Cancel = True
End If
When the user clicks one of the other navigation buttons on the parent form it presents the Yes/No message box but moves on, closing and clearing the active subform, regardless of what you select. Is it possible to cancel the navigation caused by clicking a navigation button?