E
elizabeth baker
i have recently begun using Access 2002 on a database written in Access
2000 originally and converted. i need to set the source of a subform by
code:
Forms!frmName!sfrmName.SourceObject = tblName
For the ease of the group, i am using generic names like frmName,
sfrmName and tblName.
If i understood the help files correctly, the RecordSource property has
been replaced by SourceObject. Am i correct in this?
i keep getting the error message
Run-time error '3011':
The Microsoft jet database engine could not find the object
'sfrmName'. Make sure the object exists and that you spell its
name and the path name correctly.
The subform exists in the database window and holds the appropriate
data. i have written code to check that it's there and open it for
testing, which works. Why isn't Access seeing it?
i have also tried the following code (stabbing in the dark here), also
with no success:
Me!sfrmCCBillImport.SourceObject = tblName
Me!sfrmCCBillImport.Form.RecordSource = tblName
Any ideas? Thanks for your help.
--e (elizabeth)
2000 originally and converted. i need to set the source of a subform by
code:
Forms!frmName!sfrmName.SourceObject = tblName
For the ease of the group, i am using generic names like frmName,
sfrmName and tblName.
If i understood the help files correctly, the RecordSource property has
been replaced by SourceObject. Am i correct in this?
i keep getting the error message
Run-time error '3011':
The Microsoft jet database engine could not find the object
'sfrmName'. Make sure the object exists and that you spell its
name and the path name correctly.
The subform exists in the database window and holds the appropriate
data. i have written code to check that it's there and open it for
testing, which works. Why isn't Access seeing it?
i have also tried the following code (stabbing in the dark here), also
with no success:
Me!sfrmCCBillImport.SourceObject = tblName
Me!sfrmCCBillImport.Form.RecordSource = tblName
Any ideas? Thanks for your help.
--e (elizabeth)