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

Suppressing Subtotals (need help with formula) based on first record

Status
Not open for further replies.

jcash35010

Programmer
Jul 22, 2003
21
0
0
US
I am trying to supress a subtotal on a subreport, and I can suppress it correctly using the formula below....however I have a problem with it when it doensn't have a next record to compare it to.

if ({sp_POEntry_PurchaseOrderDetails.Colorcd}) <> Next ({sp_POEntry_PurchaseOrderDetails.Colorcd}) then
False
else if onlastrecord then
false
else
true

Help! The onlastrecord is not working. Any suggestions?
 
Try something like:

not(onlastrecord) and {sp_POEntry_PurchaseOrderDetails.Colorcd} = Next ({sp_POEntry_PurchaseOrderDetails.Colorcd})

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top