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

Working with Report Variables

Status
Not open for further replies.

NeedERP

IS-IT--Management
Mar 9, 2004
15
US
I have a report that prints total sales by Account+Location. I am trying to add a field that will total all sales for an Account that has more than 1 location. I have setup 2 groups, Location and Account. They seem to work fine. I have also setup the Report Variable lnCount as follows:

Value to Store: lnCount+1 (Nothing)
Initial Value: 0
Reset at: Account

In the total sales field in the Account Group I have
Print When: lnCount>1.

At the moment the total sales field in the Account group is printing for all accounts even if there is only one Location. It is probably very simple, but I cannot see my error. Any assistance is appreciated.
 
Am guessing that lnCount is set up so that it gets incremented with each detail line rather than just when Location changes. I'd try printing lnCount itself on the report to see exactly what's going on.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top