Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error - There must be a group that matches this field

Status
Not open for further replies.

rsunra

IS-IT--Management
Sep 30, 2003
53
0
0
AU
I get the follow error:

"There must be a group that matches this field"

What does it mean

on the Sum({Duration}, {@DayofWeek});


numbervar dur:= Sum({Duration}, {@DayofWeek});

numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;

hrs := Truncate(Truncate(dur/60)/60);
min := Remainder(Truncate(dur/60),60);
sec := Remainder(dur,60);

hhmmss := totext(hrs, "0") + ":" + totext(min, "00") + ":" + totext(sec, "00");

@dayofweek = WeekdayName (DayOfWeek ({FIN03_Main.Event_Date}))
 
Hi,
You are asking Crystal to sum the value of Duration for each result of the formula {@DayofWeek}- but that requires that the same formula be used as a Group -

As I understand it, the syntax
Sum({Duration}, {@DayofWeek})
means to sum the values for Duration every time the Group based on the {@DayofWeek}formula changes value..

[profile]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top