=DCount("[2]","Attendance","[2]='P' And [Manager] = '" & [Label10].[Caption] & "' And [Month] = [Combo1] ")
[2] 是一个月的日期。例如,如果今天的日期是2018年10月5日,那么它将被计算为[5],以此类推。
请帮帮我。
Include Date()并更正语法:
=DCount("*","Attendance","[2]='P' And [Manager] = '" & [Label10].[Caption] & "' And [Month] = Month(Date())")
然而:
当您筛选时没有意义: [2]='P'
[2]='P'