I need to be able to cycle through all of the fields in a database while cycling through the values in a listbox to see if records exist in the database with a certain field, "identifier", that maches the value of the listbox in that cycle...
understand?
This is what i have so far... but it doesn't even look as if it even got started... the records are still in the dbase...
VB Code:
For i = 0 To lstImport.ListCount For j = 1 To RS.RecordCount If RS.Fields("identifier").Value = lstImport.List(i) Then RS.Delete RS.Update End If RS.MoveNext Next j Next i
i know that the looping code is good, i believe my problem is in the location of the Delete, Update, and MoveNext commands...
thank you
squirrelly1![]()




Life is grand for a coder, no?
Reply With Quote