0

我在我的用户访问表单中使用 DCount 函数来防止多个用户同时键入的参考号重复。但是,即使该字段为空白,它也会提示“Ref 已存在”。知道为什么吗?

If DCount("[UNIQUE_REF]", "DATA_TABLE","[UNIQUE_REF] = "'& Me.INPUTREF.Value & "'") > 0 Then 
     MsgBox("Ref already exists.")
     Me.Undo
     Cancel = True
     Exit Sub
End If
4

0 回答 0