johnbird1988
Board Regular
- Joined
- Oct 6, 2009
- Messages
- 199
Hello
I have a form with 5 different tabs. On one of the tabs called “Employee” I have a sub form. When I click on this tab I know that access will automatically save any change because it moves out of focus. Is there some VBA code I can attached to the “Employee” tab that will respond to a yes, no box? I would like the Yes to continue to the “Employees” tab and the no to return to the current tab. I have the below bit of code at the moment.
Private Sub Employee_Click()
If MsgBox("All changes will be saved. Would you like to continue?", vbYesNo) = vbYes Then
End If
End Sub
End Sub
Thank you
John
I have a form with 5 different tabs. On one of the tabs called “Employee” I have a sub form. When I click on this tab I know that access will automatically save any change because it moves out of focus. Is there some VBA code I can attached to the “Employee” tab that will respond to a yes, no box? I would like the Yes to continue to the “Employees” tab and the no to return to the current tab. I have the below bit of code at the moment.
Private Sub Employee_Click()
If MsgBox("All changes will be saved. Would you like to continue?", vbYesNo) = vbYes Then
End If
End Sub
End Sub
Thank you
John