i have a form that has required fields and i have a delete button, created by
the wizard, that has this code for onclick:
Private Sub cmddeleterecord_Click()
On Error GoTo Err_cmddeleterecord_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_cmddeleterecord_Click:
Exit Sub
Err_cmddeleterecord_Click:
MsgBox Err.Description
Resume Exit_cmddeleterecord_Click
End Sub
5 of the 9 fields on this form are required. if you try to delete the record
w/o filling in all of these fields, access won't let you. how can i bypass
this and allow a user to click the delete button and either delete the
incomplete record or clear the form? thanks.
--
Message posted via http://www.accessmonster.com