My solution already tries to delete only if the form is posted.
since the file delation relies on the recordset not being empty, and the record is filtered on the form variable.
The only way the recordset is not empty is if the delete button is pressed.