D
Dave Elliott
I have a form named BlankChecks which has a control on it that needs to be
checked for duplicates although duplicates are allowed.
The control is named ChkNo
I tried this code, but it does not work, what am I doing wrong?
It is on after update event.
Thanks,
Dave
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
If DCount("ChkNo", "BlankChecks", "BlankChecks=Forms!BlankChecks!") > 1 Then
MsgBox "Duplicate Check Number, Are You Sure?"
End If
checked for duplicates although duplicates are allowed.
The control is named ChkNo
I tried this code, but it does not work, what am I doing wrong?
It is on after update event.
Thanks,
Dave
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
If DCount("ChkNo", "BlankChecks", "BlankChecks=Forms!BlankChecks!") > 1 Then
MsgBox "Duplicate Check Number, Are You Sure?"
End If