Hello,
I would like to copy a calculated control of an unbound control on to
a report. On my form (F_SampleReques t) i have a button which opens
the report. Here is the code for the button:
Private Sub btnOpenSampleRe port_Click()
DoCmd.OpenRepor t "R_SampleReques t"
'Open Report SampleRequest
Reports!R_Sampl eRequest.SR_Sam pleReqRep.Repor t!txtRptWat =
SF_MixSample.Fo rm!ListWater
Reports!R_Sampl eRequest.SR_Sam pleRequest.Repo rt!txtRptWaterR eq =
SF_MixSample.Fo rm!txtWaterReqW t
End Sub
My report contains a subreport (SR_SampleReqRe p) which has 2 text
boxes (ListWater and txtwaterReqWt) which I wish to be copied into
from the SF_mixSample subform. This code prints the report as opposed
to copying the information into the report. I have used similar code
to copy from one form to the next, so I thought i could do the same
with a report and subreport. How can I copy a value from a subform
to a subreport?
I would like to copy a calculated control of an unbound control on to
a report. On my form (F_SampleReques t) i have a button which opens
the report. Here is the code for the button:
Private Sub btnOpenSampleRe port_Click()
DoCmd.OpenRepor t "R_SampleReques t"
'Open Report SampleRequest
Reports!R_Sampl eRequest.SR_Sam pleReqRep.Repor t!txtRptWat =
SF_MixSample.Fo rm!ListWater
Reports!R_Sampl eRequest.SR_Sam pleRequest.Repo rt!txtRptWaterR eq =
SF_MixSample.Fo rm!txtWaterReqW t
End Sub
My report contains a subreport (SR_SampleReqRe p) which has 2 text
boxes (ListWater and txtwaterReqWt) which I wish to be copied into
from the SF_mixSample subform. This code prints the report as opposed
to copying the information into the report. I have used similar code
to copy from one form to the next, so I thought i could do the same
with a report and subreport. How can I copy a value from a subform
to a subreport?
Comment