Two thoughts...
Are Subform1 and Subform2 actually the name of the subforms?
You need to reference the name of the subform 'control' that
holds the subform and not the name of the subform itself.
This may be an email typo, but I also notice that your
spelling of 'recordsourec' is repeated a couple of times. It
should be 'recordsource'.
--
Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
Forms![Mainform]![Subform1].Form![Subform2].Form.recordsoure
c.RecordCount
Me![Subform2].Form.recordsourec.RecordCount
In example:
I have main form Mainform, with subform Subform1 and subform of that subform
Sunform2
Mainform
Subform1
Subform2
Commands have been executing from subform Subform1.
this dont'work
Forms![Mainform]![Subform1].Form![Subform2].Form.recordsoure
c.RecordCount
Me![Subform2].Form.recordsourec.RecordCount
but
Forms![Mainform]![Subform1].Form.recordsourec.RecordCount
Me.Form.recordsourec.RecordCount works.
I have been using lot of syntax for referencing subsubform properties
newrecord or recordsource but without success. I have
been
using
constratction from document in attachment but without success.
Thanks in advanced!
I'm having problems wit referencing some
properties of
subforms
(newrecord,
recordsetclone.recordcount) if subform level is greater of two. For
example
Me![Mainform]![Subform].form.newrecord work, but
Me![Mainform]![Subform]![Subform2].form.newrecord don't work. Is there
some
resolution.
You have to expand on the first syntax.
Me![Mainform]![Subform].form![Subform2].form.newrecord