I have an Access 2000 form that I open showing only the header. The
form's detail section visible property is set to false.
The detail section contains a subform. Using a command button, I use
the code:
Me.Detail.Visible = true
Me.SubFormName.Form.RecordSource = "sprocXYZ"
It returns the following error:
"2455 - You have entered an expression that has an invalid reference to
the property Form/Report."
If I set the form's detail section visible property to true in design
mode, the code works fine.
For some reason, Access doesn't recognize the subform if the form opens
with the detail section set to false.
Is there a workaround for this?
Thanks,
lq