Hi - I cannot get the 1st outer loop to perform, but the 2nd iner loop seems to work fine. This code is basically trying to evaluate each name field against every other name field in a table. The code compares the 1st name to all the others, but never moves on to the 2nd name to repeat the process. I thought the code looked pretty straight forward, but I must be missing something. Any suggestions?
Thanks
If rs.BOF And rs.EOF Then ' no records
Else
Do Until rs.EOF
vResultKeep = 0 ' reset to 0 for each new test
v2Test = rs![Name]
vCountA = vCountA + 1
vCountB = 0
rs.MoveNext
Do Until rs.EOF
vTested = rs![Name]
vCountB = vCountB + 1
vResult = Simil(v2Test, vTested)
If vResult > vResultKeep Then
vResultKeep = vResult
End If
rs.MoveNext
Loop
Loop
Thanks
If rs.BOF And rs.EOF Then ' no records
Else
Do Until rs.EOF
vResultKeep = 0 ' reset to 0 for each new test
v2Test = rs![Name]
vCountA = vCountA + 1
vCountB = 0
rs.MoveNext
Do Until rs.EOF
vTested = rs![Name]
vCountB = vCountB + 1
vResult = Simil(v2Test, vTested)
If vResult > vResultKeep Then
vResultKeep = vResult
End If
rs.MoveNext
Loop
Loop