Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Shared Variables Post Reply Post New Topic
Author Message
Carol
Newbie
Newbie


Joined: 01 Jun 2010
Online Status: Offline
Posts: 14
Quote Carol Replybullet Topic: Shared Variables
    Posted: 01 Jun 2010 at 2:00am

I'm using 4 subreports with sharing variables. What I'm trying to do is get a total from each subreport for every employee. What is happening is if the employee has no records in the subreports the total from the prior employee shows up. I'm not sure how to get around this.

IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 01 Jun 2010 at 5:31am
Are you reseting the variable(s) to zero before each pass of the subreports?
IP IP Logged
Carol
Newbie
Newbie


Joined: 01 Jun 2010
Online Status: Offline
Posts: 14
Quote Carol Replybullet Posted: 01 Jun 2010 at 6:02am

Where do I reset them. I have a reset in there but it does not seem to work.

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 03 Jun 2010 at 3:12am
I would probably reset the shared variable when the employee changes...if that is appropriate for how the report/subreports are laid out.
 
HTH
IP IP Logged
Carol
Newbie
Newbie


Joined: 01 Jun 2010
Online Status: Offline
Posts: 14
Quote Carol Replybullet Posted: 03 Jun 2010 at 3:20am

Thank you, That took care of it.

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.