View Full Version : delete record warning off


hullstorage
06-30-2008, 09:13 AM
can somebody tell me how to when i delete a record
it does not warn me first

thanks
simon

pbaldy
06-30-2008, 09:24 AM
How are you deleting it?

hullstorage
06-30-2008, 09:38 AM
i have created a button next to the record on click delete
works fine but i am getting the standard microsoft access prompt
are you sure you want to delete

pbaldy
06-30-2008, 09:48 AM
I meant the code, but try

DoCmd.SetWarnings False
your code here
DoCmd.SetWarnings True

hullstorage
06-30-2008, 09:56 AM
thanks worked a treat