I found a closed thread that appears to do just what I want to do but I get an error when I try to implement the formula. lbass offered the solution.
The closed thread is:
thread767-1644229
My error message when I put in the group selection formula is "The result of the selection formula must be a bolean."
I am using Crystal 11 with an Access DB.
Here is the group selection fomula.
whileprintingrecords;
numbervar dcnt;
numbervar cnt := cnt + 1;
numbervar curr;
numbervar prev := curr;
curr := Count ({table.visits}, {table.name});
if groupnumber = 1 or
curr <> prev then
dcnt := dcnt + 1 else
dcnt := dcnt;
The closed thread is:
thread767-1644229
My error message when I put in the group selection formula is "The result of the selection formula must be a bolean."
I am using Crystal 11 with an Access DB.
Here is the group selection fomula.
whileprintingrecords;
numbervar dcnt;
numbervar cnt := cnt + 1;
numbervar curr;
numbervar prev := curr;
curr := Count ({table.visits}, {table.name});
if groupnumber = 1 or
curr <> prev then
dcnt := dcnt + 1 else
dcnt := dcnt;