JaedenRuiner
Registered User.
- Local time
- Today, 13:01
- Joined
- Jun 22, 2005
- Messages
- 154
Okay,
I have a Form with two sub forms on it.
I'll call them
Form: MainForm
Ctrls: SubForm1, SubForm2
Form: SubForm_1
Form: SubForm_2
Very simple.
Now, in SubForm1 I have tried the following all to no avail:
Not a single one works, i am constantly getting a run-time error 2455, saying, "You entered an expression that has an invalid reference to the property Form/Report" or something to that degree. Is there no way that I can control effects that happen in one subform from another subform?
thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
I have a Form with two sub forms on it.
I'll call them
Form: MainForm
Ctrls: SubForm1, SubForm2
Form: SubForm_1
Form: SubForm_2
Very simple.
Now, in SubForm1 I have tried the following all to no avail:
Code:
Dim frm as Form
Set frm = Me.Parent.SubForm2.Form
Set frm = Forms!SubForm_2
set frm = me.parent.controls!subform2.form
dim ctl as control
set frm = me.parent
for each ctl in frm
if ctl.Name = "SubForm2" then
exit for
end if
next
set frm = ctl.Form
Not a single one works, i am constantly getting a run-time error 2455, saying, "You entered an expression that has an invalid reference to the property Form/Report" or something to that degree. Is there no way that I can control effects that happen in one subform from another subform?
thanks
Jaeden "Sifo Dyas" al'Raec Ruiner