G
Guest
H
I have a form which allows the user to delete previously selected record using following code
Private Sub Yes_Click(
On Error GoTo Err_Yes_Clic
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer7
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer7
MsgBox "Record deleted
DoCmd.RunMacro "M_Close 2 Objects
Exit_Yes_Click
Exit Su
Err_Yes_Click
MsgBox "Record not deleted...
Resume Exit_Yes_Clic
End Su
I want warning messages but would prefer to write my own rather than default cascading relationships etc. I'm not sure what code I need and where to put it so any help would be much appreciated
Sheila (aka Arfur Pint
I have a form which allows the user to delete previously selected record using following code
Private Sub Yes_Click(
On Error GoTo Err_Yes_Clic
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer7
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer7
MsgBox "Record deleted
DoCmd.RunMacro "M_Close 2 Objects
Exit_Yes_Click
Exit Su
Err_Yes_Click
MsgBox "Record not deleted...
Resume Exit_Yes_Clic
End Su
I want warning messages but would prefer to write my own rather than default cascading relationships etc. I'm not sure what code I need and where to put it so any help would be much appreciated
Sheila (aka Arfur Pint