总功能不编译

Total function does not compile

我正在尝试提供所有未结代金券的总金额。 在一个地方我有这个代码:

=DSum("[Voucher_Balance]"|"tblVoucherInfo"|"[Patient_number] = " & [No])

我尝试在页面末尾模仿这段代码,但它给出了一个错误。 'the expression you entered has invalid vertical bars'

有什么办法可以解决这个问题吗?我们想显示每位患者的代金券余额总额。 我曾尝试将 PC 上的 'Region and LAnguage' 列表分隔符更改为逗号,但没有效果。 我试着改变 |逗号, !, . - 全部无效。

删除那些条:

=DSum("[Voucher_Balance]","tblVoucherInfo","[Patient_number] = " & [No] & "")

如果不相加,则表明您的字段名称或 table 拼写错误,或者未传递 [No] 的有效值。