Hi,
I want to delete a record in a subform by clicking a command button on the mainform.
I made a public function in subform
Then onClick of the button
but it does not work. Any idea?
thanks
I want to delete a record in a subform by clicking a command button on the mainform.
I made a public function in subform
Perl:
Public function DelRec()
docmd.runcommand accmdDeleteRecords
end function
Code:
Public sub CMD1_Click()
Forms!frmMain.fsub.form.DelRec
end sub
but it does not work. Any idea?
thanks