I have the following code:
MsgBox "Are You Sure You Want To Submit The Quarterly Figures?", vbOKCancel, "Are You Sure?"
After the above code if the user clicks yes, I need to say run the rest of the code below. However, if the cancel button is clicked I need to skip this code and just stop the operation.
DoCmd.Hourglass True
stDocName = "qryAppendFinExpCurr"
DoCmd.OPENFORM "frmCreateSnapshot", acNormal, , , acFormPropertySettings, acHidden
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.Close acForm, "frmCreateSnapshot", acSaveNo
MsgBox "Quarterly Update complete", vbInformation, "Update Complete"
DoCmd.Hourglass False
Any ideas?
MsgBox "Are You Sure You Want To Submit The Quarterly Figures?", vbOKCancel, "Are You Sure?"
After the above code if the user clicks yes, I need to say run the rest of the code below. However, if the cancel button is clicked I need to skip this code and just stop the operation.
DoCmd.Hourglass True
stDocName = "qryAppendFinExpCurr"
DoCmd.OPENFORM "frmCreateSnapshot", acNormal, , , acFormPropertySettings, acHidden
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.Close acForm, "frmCreateSnapshot", acSaveNo
MsgBox "Quarterly Update complete", vbInformation, "Update Complete"
DoCmd.Hourglass False
Any ideas?