Default message coming up when I try to delete a record in a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, long time lurker first time poster

Have an issue when I try to delete a record from a form, the msgbox message
I coded in to confirm the delete pops up fine,when you click yes on that it
brings up that "you are about to delete 1 record(s) ..." message that you get
when you delete straight from the table.

I'm using RunCommand acCmdDeleteRecord to kill off the record

Any help would be appreciated thanks

oh also how can I stop it from saying that the database could contain
destructive code when it starts up ? the boss is getting suspicious :p

thanks again
 
If MsgBox("Are You Sure?",VbYesNo) = VbYes Then
SetWarnings False
RunCommand acCmdDeleteRecord
SetWarnings True
End If
 
Seems that Access didn't recognise the setwarnings commands there chap

Thanks for the reply though
 
Back
Top