问题
I am trying to use Dsum function in a query field to create subtotals of volume per each channel
Exp1: DSUM("[vol_tot]","[TBLNAME]","[CH]")
I have the following results:
CH Exp1
10 200,000
20 200,000
30 200,000
I was expecting:
CH Exp2
10 100,000
20 40,000
30 60,000
I'm trying to attain the same functionality as a SUMIF function in Excel...
回答1:
The filter criteria argument is incomplete. Try:
DSUM("[vol_tot]","[TBLNAME]","[CH]=" & [CH])
Domain argument functions can perform slowly in query and textbox. Consider building a report using its Grouping and Sorting feature and =Sum() in textbox.
来源:https://stackoverflow.com/questions/44009990/access-dsum-issue