R
Ryan Langton
I have a form that deletes a record if the first field is left blank by the
user. I give the user a warning box "This field cannot be left blank or the
record will be deleted. Do you want to delete the record?". The problem
I'm having is after they say Yes to my warning, Access then gives them
another warning "Are you sure you want to delete a record?" Is there a
better way of doing this so they don't get the Access warning in addition to
mine? Here is my code used to delete the record (within the condition that
tests the user response).
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
user. I give the user a warning box "This field cannot be left blank or the
record will be deleted. Do you want to delete the record?". The problem
I'm having is after they say Yes to my warning, Access then gives them
another warning "Are you sure you want to delete a record?" Is there a
better way of doing this so they don't get the Access warning in addition to
mine? Here is my code used to delete the record (within the condition that
tests the user response).
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70