继续收到错误
您尝试执行不包含指定表达式的查询
我的SQL如下所示:
UPDATE TblField LEFT JOIN TblTempStats ON TblField.DomainCatID = TblTempStats.DomainCatID
SET TblTempStats.EmptyFields = Sum(IIf([fieldname] Is Null,1,0));
为什么有任何想法?
答案 0 :(得分:1)
在我看来,你应该使用域聚合,它避免了错误:
UPDATE TblTempStats
SET TblTempStats.EmptyFields =
DSum(
"IIf([fieldname] Is Null,1,0)",
"TblField",
IIf(
TblTempStats.DomainCatID Is Null,
"TblField.DomainCatID Is Null",
"TblField.DomainCatID = " & TblTempStats.DomainCatID
)
)