thedialyzer
New member
- Local time
- Today, 12:55
- Joined
- Jun 17, 2011
- Messages
- 2
Hi
I have a command button on a form which runs an append query. If the user "cancels" and does not input any data, the following error occurs:
"Error 2001: You canceled the previous operation"
Here is the code:
Dim stDocName As String
stDocName = "PD_new_patient_append"
DoCmd.SetWarnings warningsoff
DoCmd.OpenQuery stDocName, acNormal, acEdit
MsgBox "Please select your patient from the 'Select Existing PD Patient to Update' box."
DoCmd.Requery
Me.PatList.Requery
DoCmd.SetWarnings warningson
I am using Access 2003 for compatibility reasons. Any suggestions are welcome.
I have a command button on a form which runs an append query. If the user "cancels" and does not input any data, the following error occurs:
"Error 2001: You canceled the previous operation"
Here is the code:
Dim stDocName As String
stDocName = "PD_new_patient_append"
DoCmd.SetWarnings warningsoff
DoCmd.OpenQuery stDocName, acNormal, acEdit
MsgBox "Please select your patient from the 'Select Existing PD Patient to Update' box."
DoCmd.Requery
Me.PatList.Requery
DoCmd.SetWarnings warningson
I am using Access 2003 for compatibility reasons. Any suggestions are welcome.