I would like to get a result using a do while loop.
However, my result gives only one record...
What I'm trying to do is:
- Move through
rs(record-set) records - Check if a value in
rsis equal tors2 - If so, copy the
usernamefromrstors2 Move to the next record
Do While Not rs.BOF ' No of records in rs Do While Not rs2.EOF ' No of records in rs2 If Trim(rs2![pic_no]) = Trim(rs![pic]) Then rs![UserID] = rs2![NEW_USER] rs2.MoveNext rs.Update Else rs2.MoveNext rs.Update End If Loop rs.MovePrevious rs.Update Loop