CluelessRink
Technical User
I have a DSum that goes
I would like to add another variable to it though, one that will pull the data from another field called dept from the table named tbl_employees.
I've tried
How would I phrase it?
What I am trying to do is get the total amount of tips by day (transdate) by department (dept).
And it works wonderfully.=DSum("totalsales","tbl_tips"," [transdate] = #" & [transdate] & "#")
I would like to add another variable to it though, one that will pull the data from another field called dept from the table named tbl_employees.
I've tried
but that didn't work.=DSum("totalsales","tbl_tips"," [transdate] = #" & [transdate] & "#","dept","tbl_employees")
How would I phrase it?
What I am trying to do is get the total amount of tips by day (transdate) by department (dept).