Forse non č soddisfatta questa istruzione:

If rec.Fields(0).Value = lstmagazzino.ListIndex + 1 Then