Hi
I'm wondering if there is anyway to have my own custom save button on my forms instead of using Access's record selectors to save a newly added record, or edits to a record. The same goes for having an Add, Cancel and Delete button.
I have tried to do this using DoCmd MenuItem actions, but have found, when I capture "Write Conflicts" and set the response to acDataErrContinue, that I get a Runtime Error 2051, saying that, the DoCmdMeniItem was cancelled. I think this is because, the write conflict exception was thrown by the DoCmd.DoMenuItem SaveRecord action, and after I've caught the write conflict in the Forms OnError, displayed my own message box, and set the OnError Response to acDataErrContinue, that Access knows that the DoCmd was stopped abnormally.
N.B
I am using Access 97 presently.
I'm wondering if there is anyway to have my own custom save button on my forms instead of using Access's record selectors to save a newly added record, or edits to a record. The same goes for having an Add, Cancel and Delete button.
I have tried to do this using DoCmd MenuItem actions, but have found, when I capture "Write Conflicts" and set the response to acDataErrContinue, that I get a Runtime Error 2051, saying that, the DoCmdMeniItem was cancelled. I think this is because, the write conflict exception was thrown by the DoCmd.DoMenuItem SaveRecord action, and after I've caught the write conflict in the Forms OnError, displayed my own message box, and set the OnError Response to acDataErrContinue, that Access knows that the DoCmd was stopped abnormally.
N.B
I am using Access 97 presently.