I am using following code in my dB.
DoCmd.SelectObject acTable, "tblUsers", True
DoCmd.RunCommand acCmdCollectDataViaEmail
Works fine. But I have further actions involved after this code. If user press Next on the wizard opened by second line of code and progresses further, then it is how I need.
In case, user cancels the wizard opened by second line of code, still my code progresses which I do not want. I need to halt the operation then. How can I do this. I need to check if at any stage, wizard is canceled.
Any suggestions please.
DoCmd.SelectObject acTable, "tblUsers", True
DoCmd.RunCommand acCmdCollectDataViaEmail
Works fine. But I have further actions involved after this code. If user press Next on the wizard opened by second line of code and progresses further, then it is how I need.
In case, user cancels the wizard opened by second line of code, still my code progresses which I do not want. I need to halt the operation then. How can I do this. I need to check if at any stage, wizard is canceled.
Any suggestions please.