So if I had a form called Form_patient with a subform called sub75 and
I wanted to set the subform's source from another form, the syntax
would be :
Form_patient!sub75.recordsource="MyQueryName"
?? If that's correct then I have a problem because recordsource isn't
in the possibilities I get after typing the dot :)
Any suggestions?
Greetz..
"Arno R" <ar****************@tiscali.nl> wrote in message news:<bk**********@reader1.tiscali.nl>...
Liezzzje,
You can assign a (new) recordsource for your subform in runtime
Use following syntax:
Me!SubformControlName.Recordsource="MyQueryName"
Your subform will be requery'd also
--
Hope this helps
Arno R
"Annelies" <an**************@hotmail.com> schreef in bericht
news:c7**************************@posting.google.c om... I need to pass a parameter to the source query of a subform via vba.
Any ideas on how to do that?
(Actually I wanted to set the subform source to a query but I guess
that isn't possible.. )
Greetzzz
Liezzzje...