Hi Folks,
I am using Dynamics nav 2013 and I want a way prevent duplicate
data from being accepted into the employee record when a new entry
is being made. I tried the code below but without success:
BEGIN
IF emp1.FINDSET THEN
REPEAT
emp2.SETRANGE("Social Security No.",emp1."Social Security No.");
IF emp2.COUNT > 1 THEN
EXIT(TRUE);
UNTIL emp1.NEXT = 0;
EXIT(FALSE);
END;