我正在使用以下代码计算名为FirstName的字段中的空值,并在文本框中显示结果。我可以添加其他字段“LastName”并在文本框中显示两个结果语句吗?我已经为此工作了好几个小时。提前感谢任何建议。
intCountNull = DCount("*", "Scrubbed", "FirstName" & " Is Null")
TxtShowNull = intCountNull & " null values found in FirstName"
答案 0 :(得分:1)
我不确定我对这个问题的了解程度如何。这就像你在寻找什么?
intCountNullFirst = DCount("*", "Scrubbed", "FirstName Is Null")
intCountNullLast = DCount("*", "Scrubbed", "LastName Is Null")
strMsg = intCountNullFirst & " null values found in FirstName; " & _
intCountNullLast & " null values found in LastName"
Me.TxtShowNull = strMsg