Ho do I send a parameter to a subreport on a form using VBA in MS Access 2010 -


i trying following: on form embedded sub-report want send parameters sub-report aren't linked form

i considered using "arg" section of docmd.open how pass sub-report? there anyway directly address subreport?

i did try link field on form using master/child relation seems limit single record

thanks

you can not send parameters directly subreport, beacuse embedded. openargs opening main form, not sub.

but can refer directly subreport main form control, e.g.:

me.parent!controlname 

or parent subreport:

me!subreport1.report!controlname 

this nice table shows, how refer sub elements (just replace form report) or parent elements http://access.mvps.org/access/forms/frm0031.htm

if want change data in sub-element, change recordsource in sub event in main.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -