Here's the results of snooping around in the immediate window...
(The double lines represent individual lines that couldn't be displayed on a
single line on this forum)
...any ideas, I'm stumpified... (May I should get Chuck Norris to roundhouse
kick Access)
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity].name
subfrmTrailerActivity
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity].controls.count
25
?[forms]![frmTrailerActivity]![subfrmTrailerActivity].controls(24).name
subfrmTrailerUsageComments
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity]!
[subfrmTrailerUsageComments].properties(2).name
ControlType
?acsubform
112
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity]![subfrmTrailerUsageComments].properties(2).value
112
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity]![subfrmTrailerUsageComments].properties("SourceObject")
subfrmTrailerUsageComments
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity]![subfrmTrailerUsageComments].form.controls.count
'You Entered an Expression that has an invalid reference to property
form/report.
?[Forms]![frmTrailerActivity]![subfrmTrailerActivity]![subfrmTrailerUsageComments].form.name
'You Entered an Expression that has an invalid reference to property
form/report.
Klatuu said:
You may have this correct, but just to double check,
[subfrmTrailerActivity] should be the name of the subform control on
[frmTrailerActivity], not the name of the form being used as a subform.
And
[subfrmTrailerUsageComments] should be the subform control name on the form
that is being used as the subform in [frmTrailerActivity] subform control.
--
Dave Hargis, Microsoft Access MVP
:
I need to clone the recordSet of a grandchild form, but the following statement
set rsClone =
[Forms]![frmTrailerActivity]![subfrmTrailerActivity].Form![subfrmTrailerUsageComments].Form.RecordsetClone
returns an error message - 'Invalid reference to the Form/Report'. When I
take out the second .Form. the error message is returned is (something to the
effect of) 'Object doesnot that support that property/method'
Ideas?