Smitha,
A form is not visible unitl it's Init is completed. You are calling the delete method from the Init and therefore the Init has not yet completed.
I woudl suggest that calling a subform for this operation is a bit of overkill. Perhaps you can add the delete method to the calling form and let the button simply run the delet method without the subform.