I
Ian Smith
I need to lock the controls in a form, and I am running
through the controls with:
set frmTemp = Forms(strForm)
For Each ctlTemp in frmTemp.Controls
If I encounter a subform, I want to recursively call my
procedure, but I can't figure out how to express the
subform name.
If my main form as FormMain, and I encounter a control
Child1, with a controlsource of FormSub, what form name do
I pass on? I have tried FormMain.Child1,
FormMain.Child1.Form, and FormSub without success.
through the controls with:
set frmTemp = Forms(strForm)
For Each ctlTemp in frmTemp.Controls
If I encounter a subform, I want to recursively call my
procedure, but I can't figure out how to express the
subform name.
If my main form as FormMain, and I encounter a control
Child1, with a controlsource of FormSub, what form name do
I pass on? I have tried FormMain.Child1,
FormMain.Child1.Form, and FormSub without success.