Basic syntax to check for duplicates using Dcount

elmop2005

New member
Local time
Yesterday, 23:00
Joined
Feb 9, 2012
Messages
8
what would the basic syntax be to check for duplicates in a form. the field that need to be checked is called ProductID
 
Try;
Code:
If DCount ( "ProductID", YourTable", "ProductID = " & Me.ProductID) > 1 Then
     MsgBox "This current record is a Duplicate"
End If
 

Users who are viewing this thread

Back
Top Bottom