Error 2001 is an error message you recieve when "You canceled the previous operation"
My personal suggestion would be to instead of having the prompt coming up asking the user to confirm that they want to delete the records, in the VBA have the following code
DoCmd.SetWarnings False...