This is my code
Code:
recordset.movefirst
Do While Not recordset.EOF
If recordset.Fields(0).Value = txtName Then
recordset.Fields(1).Value = txtNewAddress
Exit Do
End If
recordset.MoveNext
Loop

