hopefully a relatively simple query, i have used the MS access to build 'exit' buttons on forms, for a quick exit away from the application, however as you probably no, MS Access quits without a confirmation or warning.
I have tried to get around this by using the following code
MsgBox "Are you sure you want to quit?", vbYesNo, "Required Data"
If vbYes Then
MsgBox "Returning to Form"
If vbNo Then
However, both msgbox's are returned, when either 'Yes' or 'No' is clicked... is there anyway to get around this? Many thanks in advance,