Hi all ,
I had created the following Form/SubForm structure :
MainForm
SubForm A (SubForm of MainForm)
SubForm B (SubForm of SubForm A)
SubForm C (SubForm of SubForm B)
SubForm D (SubForm of SubForm C)
On each form I have a text box.
When The MainForm is open I had managed to access the text box on
SubForm A
With the following command:
Dim ctrlSubForm As Access.SubForm
Set ctrlSubForm = FrmSubSubjectASubForm
ctrlSubForm(SubSubjectA).Enabled = True
ctrlSubForm(SubSubjectA).SetFocus
B = ctrlSubForm(SubSubjectA).Text
But using the same method to access SubForm B,C, and D I got an error
message.
Please help me.
Thanks.