5 pts.
 Clearing a variable from a sub report Crystal reports
I am using a sub report to update a report using a different file.  I am using shared variables.  If there is no hit in the second file, the sub report does not print, but my shared variables do not clear and appear as the one before instead of zero.  I keep reading that I have to initialise the variable in the header record.  Using the Report Wizard, how do I do that?  Thank you.

Software/Hardware used:
Crysrtal Reports XI
ASKED: June 9, 2010  7:01 PM
UPDATED: June 11, 2010  6:18 PM

Answer Wiki:
When you declare your variable set it to null, 0 or "" for a string date(0,0,0) for a date. If you need it to reset everytime, you can create a variable set to null (or whatever) and place that formula in the header. Then create a second formula, which uses the variable created in the header formula, and perform all math in the details section.
Last Wiki Answer Submitted:  June 11, 2010  6:18 pm  by  Jade1977   440 pts.
All Answer Wiki Contributors:  Jade1977   440 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _