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

Running Total Formula

Status
Not open for further replies.

jomarelectric

IS-IT--Management
Jan 19, 2007
36
CA
cr10

hello, all -

i have a monthly commissions report to run where the commission is based on cash and account sales. the account sales is where i'm having the issue.

the customer (account) purchases $30,000.00 over the month and say the customer only pays $1,500.00 towards that by months end - the commission is based on that $1,500.00 and the balance is carried over.

i need to keep a running total w/ an hardcoded date of april 1/07 to keep track of account payments being made.

my record selection is:
Code:
{INIH.SALREP} = {?rep} and
{INIH.INVCDAT} in {?start} to {?end} and
{INIH.ARTOT} <> 0.00 and
(
not(isnull({INIH.OUTVAL}))
or
{INIH.OUTVAL} <> 0
)

here is what i've tried so far:
Code:
{INIH.INVCDAT} in [(Date(2007, 4, 1)) to {?end}]

the above is my running total formula for summing up the invoice payment history (this did not work). it returned the same total as the entered start and end date of my parameter.

in short, i need a running total that uses the ?end date of the parameter and an hardcoded start date. i'm i barking up the wrong tree?

//frank
 
thx, tried that w/ this error:

the result of a formula cannot be an array
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top