Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

calc - count based on database value

edited February 2005 in General
what i need to do is count the number of records that contain a certain
flag indicator; all the other fields are using dbcalc to sum dollar
amounts. but one field is a "T"/"F" and i'm trying to determine the
number of records that contain the "T".


any suggestions?
thanks!
-martha

Comments

  • edited February 2005
    You can use a ppvariable and in the event Oncalc you can write a code like
    this:

    If Ibdataset.fieldbyname('field').value='T' Then
    Ppvariable1:= Ppvariable1+1;
    "martha" <~martha@balanceconsult.com> escribi? en el mensaje
This discussion has been closed.