Joined: 30 Dec 2013
Location: United States
Online Status: Offline
Posts: 4
Topic: Clearing Subreport Totals Posted: 04 Feb 2014 at 11:53am
I am fairly new to Crystal Reports. I have a subreport with a link (whse id) from the main report. In the subreport I have total fields that I pass back out to the main report. My problem is, if there is no link (no information for the given whse id in the table in my subreport), it retains the value from the last total fields printed (from previous whse id). How do I clear the total fields after I print them so the values don't show up for the next whse which should have 0.
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 05 Feb 2014 at 11:57am
if you have 5 shared variables that need to be cleared. Then the formula would looks something like this (assuming the shared variables are numbers) shared numbervar a :=0; shared numbervar b :=0; shared numbervar c :=0; shared numbervar d :=0; shared numbervar e :=0;
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