G
Guest
Sorry for the cross-posting, but I didn't get any response in the General
Forum...
====================================================
I know how to access properties of sub-forms from other objects (see
sample code below), but I can't figure out how to do the same thing with a
sub-report.
Forms!frmParent!frmChild.Form.RecordSource = ""
I'd also like to know how to pass a value from the parent report to the
sub-report (I want to use two instances of the same sub-report, but they will
display different results depending on the value passed to them).
Linking parent/child fields won't work in this case, I need some way for the
report to tell each copy of the subreport which criteria to use.
Thanks, Dave
Forum...
====================================================
I know how to access properties of sub-forms from other objects (see
sample code below), but I can't figure out how to do the same thing with a
sub-report.
Forms!frmParent!frmChild.Form.RecordSource = ""
I'd also like to know how to pass a value from the parent report to the
sub-report (I want to use two instances of the same sub-report, but they will
display different results depending on the value passed to them).
Linking parent/child fields won't work in this case, I need some way for the
report to tell each copy of the subreport which criteria to use.
Thanks, Dave