"rhc" <rh******@yahoo.comwrote in
news:11**********************@d34g2000cwd.googlegr oups.com:
David thanks for the help. What im really trying to do is
reference subform B's recordsetclone using Set rst =
Me.Parent![b].recordsetclone. And that doesnt work. Neither
does Forms![P]![b].recordsetclone. The error msg I get is:
Object doesnt support this property or method.
I have tried every variation i can think of
I never set recordset variables for that. I'd only use a WITH block.
The reason what you're trying doesn't work is because you aren't
using the form, the but subform control. What you want is:
With Me.Parent!B.Form.RecordsetClone
...
End With
The should do it.
(I don't know why you keep using the brackets, unless the actual
name of your form has spaces or strange characters in it; if it
does, I'd suggest you stop using spaces and strange characters in
your names for Access objects as it necessitates the use of the
brackets, which can lead to problems in some cases)
--
David W. Fenton
http://www.dfenton.com/
usenet at dfenton dot com
http://www.dfenton.com/DFA/