Access DSUM Issue

穿精又带淫゛_ 提交于 2019-12-25 14:47:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!