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!

Macro Command SumField$ and Group Level

Status
Not open for further replies.

bcartwright

IS-IT--Management
Aug 23, 2007
2
0
0
CA
Hello All,

I have created a macro that successfully calculates Overtime as a % of Gross for each Department by using the SumField$ command and a groupo level of 1 (There is only one group level in my report) by defining two variable a and b (See bottom of post) and then dividing a / b.

My problem is that I created a 2nd macro to do the same thing for the report total (Entire Report Group). I cannot get this to work. I've tried several options in the group level, including 0 and 2, but nothing seems to work. Any help would be appreciated.

Brian.

a=Val(SumField$("TOT_OT","Derived Field",1,"Sum"))
b=Val(SumField$("CHECKVIEWGROSSPAYA","V_CHK_VW_EARNINGS",1,"Sum"))
i
 
Sorry, problem solved.

The problem was not the code, I had the other macro associated to the report level derived field.

Brian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top