A
|
ann 5/28/2010 |
Hi, sql = "select count(FieldName) from TableName" |
M
|
mfred author 6/24/2010 |
I actually I needed the total. But I knew what to change. The code is below. I do have one additional factor. They also want this to reflect specific departments. Let's say I want this to show the sums for all entries from the English department. If there a way to refine this based on a criteria in a different field? |
A
|
ann 6/25/2010 |
Hi, sql = "select sum(Budget_Deduction) from BudgetQuery1 where DepartmentFieldName='DepartmentValue'" |
M
|
mfred author 6/25/2010 |
Thanks. That was helpful. I have just been told of one other thing. Is there a way to display the total based on the department and a session variable. As in Session("AccessLevel"), access level being department managers. |
A
|
ann 6/28/2010 |
Hi, sql = "select sum(Budget_Deduction) from BudgetQuery1 where DepartmentFieldName='DepartmentValue' AND "& Session("GroupID") &"='department_managers'" |
M
|
mfred author 6/28/2010 |
Thank you. |