using a subreport value in another subreport

  • Thread starter Manoj Jiwatramani via AccessMonster.com
  • Start date
M

Manoj Jiwatramani via AccessMonster.com

i have a report which contains two subreports - subreport1 and subreport2.

subreport1 has a textfield1.
subreport2 has a textfield2.

i want to show textfield1 + textfield2 in subreport2.

how can i do that ?

please help me or if there is already a thread existing which answers my
question, please direct me to that thread.

thank you.
 
A

Allen Browne

You will have to find another way to approach this.

A subreport may have several records. Access works through the records and
calculates how subreport1 should look. It then works through subreport2's
records calculating how it should look. When it's working through
subreport2, there is no such thing as a 'current' record in subreport1, so
there is nothing you can ask it to sum.

Perhaps you can use DLookup() or some other approach to get the value you
need.
 
J

jiwatramani via AccessMonster.com

thanks alot.
but earlier i have tried to show textfield1 + textfield2 in the main report.
and it works properly.

i dont know how this is not working.

could you tell me something about DLookup.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top