Access 2002 - I have the following routine:
Code:
.
.
strSql = "tblX"
set deb = currentdb()
set rec = db.OpenRecorset(strSql)
rec.index = "IndexA"
rec.Seek "=", strZ
if Not rec.nomatch then
rec.edit
.
.
rec.update
end if
rec.close
set rec = Nothing
[\code]
I want to loop thru it since the index allows duplicates.
I do not want to searche the whole table since the chance of hitting a record in the table is less than 1% and the table is rather large.
Any help is appreciated.