D
Dave
Has something changed in Access 2007 when referencing subform controls
or properties? Until we migrated from 2000/2003 to 2007, my syntax
worked. I have spent the better part of two days trying to solve error
2455: "You entered an expression that has an invalid reference to the
property Form/Report".
I have: form name - "frmNP"; subForm control name - "subNPfrm";
form name on subform control - "frmNPsub"
When referencing subform properties, I used the syntax
With Forms("frmNP").Controls("subNPfrm").Form
.DataEntry = True
.etc, etc.
End With
When referencing controls on a subform, I used Forms!frmNP!
subNPfrm.Form!txtNPno
that is, Forms![FormName]![subformControlName].Form!
ControlNameOnSubform
It should be obvious that I distinguish between the object names and
their data sources by virtue of the fact that this used to work, but I
say so here just to clarify that I'm aware of the potential mix up.
Other than that or a change to the object model, I have no clue. Much
appreciated if anyone has another idea.
Thanks.
or properties? Until we migrated from 2000/2003 to 2007, my syntax
worked. I have spent the better part of two days trying to solve error
2455: "You entered an expression that has an invalid reference to the
property Form/Report".
I have: form name - "frmNP"; subForm control name - "subNPfrm";
form name on subform control - "frmNPsub"
When referencing subform properties, I used the syntax
With Forms("frmNP").Controls("subNPfrm").Form
.DataEntry = True
.etc, etc.
End With
When referencing controls on a subform, I used Forms!frmNP!
subNPfrm.Form!txtNPno
that is, Forms![FormName]![subformControlName].Form!
ControlNameOnSubform
It should be obvious that I distinguish between the object names and
their data sources by virtue of the fact that this used to work, but I
say so here just to clarify that I'm aware of the potential mix up.
Other than that or a change to the object model, I have no clue. Much
appreciated if anyone has another idea.
Thanks.