S
Stonewall
I am using access2000 and am printing an employee report that shows a variety
of information about an employee. At the top of the report I have a summary
section that shows how much money an employee has charged. I have a
calculated field on the report that sums up the total of the charges for a
particular employee.
This syntax works fine:
=DSum("[amount]","Tbl_accounting","[type] = '" & "Charge" & "' And
[employee_id] = " & [employee_id])
I also want another calculation that totals up all the charges made by all
current employees [current employee = yes] not just a particular employee.
I came up with this syntax:
=DSum("[amount]","Tbl_accounting","[type] = '" & "Charge" & "' And [current
employee] = " & "yes")
This syntax doesn't work. It ignores the last part where I am specifing I
want to include all current employees in my totals. It gives me a grand total
but the totals also include employees with a NO in the [current employee]
field. The current employee field is a YES/NO data type. the TYPE field is
a TEXT field.
Thanks for any help.
of information about an employee. At the top of the report I have a summary
section that shows how much money an employee has charged. I have a
calculated field on the report that sums up the total of the charges for a
particular employee.
This syntax works fine:
=DSum("[amount]","Tbl_accounting","[type] = '" & "Charge" & "' And
[employee_id] = " & [employee_id])
I also want another calculation that totals up all the charges made by all
current employees [current employee = yes] not just a particular employee.
I came up with this syntax:
=DSum("[amount]","Tbl_accounting","[type] = '" & "Charge" & "' And [current
employee] = " & "yes")
This syntax doesn't work. It ignores the last part where I am specifing I
want to include all current employees in my totals. It gives me a grand total
but the totals also include employees with a NO in the [current employee]
field. The current employee field is a YES/NO data type. the TYPE field is
a TEXT field.
Thanks for any help.