J
judyb
I am currently working with a database that is working well. However, I have
discovered that I need to add an "IF Statement" to change the expression so
that it adds all of the weeks service if the DepartmentName field is equal to
"Reserves". This is the existing code:
=DSum("[WeeksService]","Service Record Query","[EmployeeID] = " &
[EmployeeID] & " And [DepartmentName] = Current_Department_Name")
How do I need to change the code so that all of the weeks service will be
added together if the DepartmentName is equal to "Reserves"? Thanks in
advance for your help.
Judy
discovered that I need to add an "IF Statement" to change the expression so
that it adds all of the weeks service if the DepartmentName field is equal to
"Reserves". This is the existing code:
=DSum("[WeeksService]","Service Record Query","[EmployeeID] = " &
[EmployeeID] & " And [DepartmentName] = Current_Department_Name")
How do I need to change the code so that all of the weeks service will be
added together if the DepartmentName is equal to "Reserves"? Thanks in
advance for your help.
Judy