It is better planning and far better design to do something within a form in that form.
You will make your life far less complicated putting your delete button in the subform if you are trying to delete the record shown by the subform. Put another way, if you have a delete button on your primary form it will be assumed you are deleting the record shown by the main form which you really do not want to do.
So, given that I have convinced you and you now have a delete button on your subform, on the on click event of that button, do the following.
Dim rs As Recordset
Dim varBM As Variant
varBM = Me.Bookmark
rs = Me.RecordsetClone
rs.Bookmark = varBM
rs.Delete
rs.Close
Set rs = Nothing
That will do it for you.
Whoops, one more thing, with that logic you will see either deleted or error in the subform. Assuming you have more than just that one record in the subforms record set, you can substitute the following code to get around that problem.
Dim rs As Recordset
Dim varBM As Variant
varBM = Me.Bookmark
rs = Me.RecordsetClone
rs.Bookmark = varBM
rs.Delete
rs.requery
if rs.recorcount > 0 then
rs.movefirst
varBM = rs.bookmark
me.bookmark = varBM
rs.Close
Set rs = Nothing
Robert Berman