Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Communication between two subreports

Status
Not open for further replies.

rushdib

Programmer
Jun 12, 2001
203
US
I would like to know how to pass values between two subreports which are inside a main report using VBA? I tried "Reports![subreportname]![somevalue]" it gives an error.

Thanks
 
Can you explain what you are trying to do? It's not clear from your post. Examples are helpful!

Joe Miller
joe.miller@flotech.net
 
Ex. If there is a field named 'Total' in subreportA, and I want to receive that field value in subreportB using VBA when the reports formats or prints.
 
Here's the syntax you need:

=[Reports]![MyMainReportName]![subreportA].[Report]![MyTotalTextBox]

Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top