Referring to subforms - Access 2003 vs 2002

gromit

Registered User.
Local time
Today, 12:36
Joined
Nov 17, 2005
Messages
260
Hi -

I'm trying to set the recordsource of a subform from VBA. In Access 2002, I used syntax like this -

Me.frmsubSubname.Form.RecordSource = strSQL

This worked fine.

However, in 2003 I now get an error -
"2455: You entered an expression that has an invalid reference to the property Form/Report"

I have tried to find a list of the proper syntax for referring to subform controls and properties, but could use some assistance.

Thanks,

- g
 

Users who are viewing this thread

Back
Top Bottom