enabling or disabling subforms in main forms by code

I am having problems with enabling and disabling the subforms which are contained in an main form.how can i access the subform in code that i can enable or disable it.

Yous can use currform.subform.activiate(true) to activate the subforms.

Anil.