Friends,

The below formula is not working. Please point me where iam making mistake.

VB Code:
  1. whileprintingrecords;
  2. global numbervar tottrd;
  3. numbervar cnttottrd;
  4. if
  5. (
  6. {Admin.OTC}="001"
  7. or
  8. {Admin.COEN} in
  9. ["Chargeable Labour + Chargable Spares",
  10. "Chargeable Labour + Free Spares",
  11. "Chargeable Spares + Free Labour"]
  12. )
  13. then
  14. cnttottrd := {PAYMENTS.PAIDAMT}
  15. else
  16. cnttottrd := 0;
  17. tottrd := tottrd + cnttottrd

if i change
cnttottrd := {PAYMENTS.PAIDAMT}
to
cnttottrd := 1
then its working.......

Please treat this as urgent.

Thanks & Regards
Sathyguy