Private Sub pCode_BeforeUpdate(Cancel As Integer)
Dim temp
temp = DLookup("pCode", "tblPersonel", "pCode=" & [pCode])
If Not (IsNull(temp)) Then
MsgBox "Duplicate Value !", vbCritical, "Error"
Cancel = True
End If
End Sub
1 نظر
تازه ترین ها