Capture Duplicate Records
Posted: Wed Dec 20, 2006 12:13 am
Hi
am trying to capture duplicate records
i have sorted the records on the key
and am using the following code as stage variables.
Var = Key
flag = If Var = Var2 Then "Duplicate" Esle "NO"
Var2 = Var
But this is not giving me the results
Though i see in my debugger that var2 is retaining the old value of var the flag is always being set to Duplicate!!!!!
not sure where the problem is ???
Any help is appreciated
Thanks
am trying to capture duplicate records
i have sorted the records on the key
and am using the following code as stage variables.
Var = Key
flag = If Var = Var2 Then "Duplicate" Esle "NO"
Var2 = Var
But this is not giving me the results
Though i see in my debugger that var2 is retaining the old value of var the flag is always being set to Duplicate!!!!!
not sure where the problem is ???
Any help is appreciated
Thanks