문제

I'm working with an access 2003 report that uses an employee, and their points they've accumulated over a period of time. When the report is run, it asks for parameters StartDate and EndDate, then generates a nice report by Supervisor -> Employee -> Each point with a reason.

How can I get a total box next to each employees name to give the total points for each employee? I've thought about writing a SELECT and WHERE statement and adding variables to the VBA, so the source property is:

=(SUM(SELECT [PointValue] WHERE [EmployeeName] = CurrentEmployee AND & _
      [Date] <= #StartDate# AND [Date] >= #EndDate#))

Thanks in advance!

도움이 되었습니까?

해결책

The easiest way to do this would be to use grouping. If you create a group header for the employee field (column) you can add a textbox and sum the points in the group header.

report grouping

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top