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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with shared variables from subreport

Status
Not open for further replies.

latsyrc

MIS
May 23, 2003
6
US
Hello! This looks like a great place that I just stumbled upon to find a little insight! I have a report with a subreport. I am trying to pass data from the sub to the main and am using shared variables. My problem is that if a record has more than one record in the sub, only the last record is brought back into the main. For instance if a record meets my selection criteria in the sub then the data is "a." It brings this back into the main and all is good. But if another record ends up meeting my criteria on three different instances in the sub (the data would be "a, "b" and "c" then only "c" comes back to the main. I hope that makes sense. Please let me know if anyone would like more clarification. Thanks for any help!
 
certainly....instead of a simple "shared" variable....make it a "shared" array...store all the answers and pass them back to the main report to process as you wish

Jim Broadbent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top