Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
myVar = Msgbox("Do you wish to exit? You will lose any unsaved data.", 1, "Exit Test Scores?")
'Here is where i am doing something wrong
if myVar = 1 then ' user selected yes
'exit without saving
DoCmd.Close
else
'go back to the form
DoCmd.Restore
end if
End Sub