Hi,
if msgbox("Are you sure?",vbCritical+vbYesNo,"Delete")=vbYes
' your code goes here
endif
HTH
>I have put a delete button on a formm which adds the code,
> DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
> DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
>I would like to add some code if the user responds yes to the delete. How can I tell if the user has responded yes to no?
>
>Judy Scofield
Igor Gelin
Database Developer