Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    50

    Unanswered: Need help with the count command

    Hi there can anybody help !

    What it is am doing a report on Rail travel and in 1 column i have the travel
    class ie first and second and i need to count how many first class ticket and second class tickets have been purchased over the last month, but every thing i have tryed the total comes back 480 which is the total for the 2 classes added together.

    Any help would be great

    Regards

    KM

  2. #2
    Join Date
    Oct 2003
    Posts
    357
    Hai,
    Use the formulas one having
    NumberVar first:=0;
    whileprintingrecords;
    if travelclass='first'
    first=first+1;

    and second having
    NumberVar second:=0;
    whileprintingrecords;
    if travelclass='second' then
    second=second+1

    But I did not check that formula. Try this.

    Madhivanan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •