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 John Tel 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.

dBjason

Programmer
Mar 25, 2005
355
US
cr 9

I'm trying to add a running total field in my group footer. I need the running total to sum all Bond;1.Amounts EXCEPT when another detail field has a Bond;1.ReleaseDate. To illustrate, the recordset in SQL looks like this:

Code:
No.     Name     Amount     ReleaseDate
4326    Pete     4          09/13/1991
4326    Bob      6          NULL
4326    Sherrie  2          05/19/2005
4326    Shirley  1          NULL
....

I just need the running total to display '7' as that would be the sum of Bob and Shirley (no release dates for them).

I've added the Running total field to my report, and set the Evaluate option to 'Use a formula', and that's where I can't seem to get it to work. I've tried:

Code:
IsDate(ToText({s_Bond;1.Amount})) = True

But I just get left with an empty field. Other code I've tried in the formula workshop just seem to add ALL of the amounts, regardless of whether or not they have a release date.

Anyone have any ideas?

Thanks in advance,
Jason
 
In your Evaluate formula you could try this:
Code:
IsNull({s_Bond;1.ReleaseDate}) OR 
{s_Bond;1.ReleaseDate} =Date(0,0,0)



Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top