problem about refering subreport
I have a report called rptReference, rptReference has a subreport called rptLookupC, rptLookupC has a subreport called rptOutcomeC,that's:
rptReference
---rptLookupC
--------rptOutcomeC
In rptOutcomeC, there is a textbox called txtSdOrCdValue, the Sd value and cd value both come from tblTrial(see below)
tblTrial
ID SD value CD value
1 1.2
2 3.4
3 4.5
4 8.0
5 7.4
Either SD or CD has a value, but never both have values. The following is what the report would look like:
ID txtSdOrCdValue
1 SD=1.2
2 CD=3.4
3 SD=4.5
4 SD=8.0
5 CD=7.4
QUESTION:
1:How to refer to txtSdOrCdValue in VBA code? coz it is in the subReport, I have no idea how to do it?
2:Any method to fill in txtSdOrCdValue with SD or CD?
Thanks a lot
|