are the records you want to delete in subform?
you can add timer to your subform to save the current PK number and the SelHeight (number of selected).
add 1 hidden textbox to your main form.
on the subform's timer event, save the pk(s) selected rows to the hidden textbox.
see this demo.