G
Guest
I need to avoid duplication while I enter my order, if I try to add a number
which is already available in table, then a message should show that the
number exist.
Table name = Orders
Field in table = OrdNo ( Order sample : QTNNo/256,QTNNo/257 etc..
Form name :OrderEntry
Control name in Form : Text20
I've got a code for this purpose, but it shows "Expected list seperator"
here is the code
please correct this code
If DCount("[OrdNo]"," Orders ","[ OrdNo] ='"Forms! OrderEntry!Text20& "'")
<>0 Then
MsgBox "....Duplicate"
Cancel = True
Thanks
which is already available in table, then a message should show that the
number exist.
Table name = Orders
Field in table = OrdNo ( Order sample : QTNNo/256,QTNNo/257 etc..
Form name :OrderEntry
Control name in Form : Text20
I've got a code for this purpose, but it shows "Expected list seperator"
here is the code
please correct this code
If DCount("[OrdNo]"," Orders ","[ OrdNo] ='"Forms! OrderEntry!Text20& "'")
<>0 Then
MsgBox "....Duplicate"
Cancel = True
Thanks