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

Shared Variable Out of Sync in Main Rpt

Status
Not open for further replies.

kim200

Technical User
Oct 7, 2003
4
US
I have a shared variable passing from a subreport to the main report .... problem is the variable in the main report is associated with the wrong record in the subreport.

That is the second record will have the value of the first record, the third has the value of the second record and so on.

The variable is at the detail level.

Does any one know what I'm doing wrong???
 
I suspect that timing is getting you here.

The use of the subreport should occur before you try to use the shared variable, meaning in a previous section, and make sure that you reset the variable prior to executing the subreport to avoid repeating values when the subreport doesn't return anything.

When posting, give examples of what you're doing as opposed to text descriptions for more accurate responses.

-k
 
Thank you synapsevampire .. it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top