I created a formula that is giving me the error "There must be a group that matches this field." Here is the formula, but I can't figure out what the problem is or why a group would need to match the field. The Present Hours formula exists and seems to be ok.
whileprintingrecords;
global numbervar Daycounter;
if sum({@Present Hours},{DATE}) >= 0
then (Daycounter := Daycounter + 1
else Daycounter := Daycounter;
whileprintingrecords;
global numbervar Daycounter;
if sum({@Present Hours},{DATE}) >= 0
then (Daycounter := Daycounter + 1
else Daycounter := Daycounter;