M
mscertified
Is the fields collection still available after .update?
On Error GoTo TryNext
Do While Not rs.EOF
If Nz(rs.Fields("LockUser").Value, "") = "" Then
With rs
.Fields("LockUser").Value = strUser
.Update
lngQID = .Fields("ID").Value <====== ???
.Close
End With
Exit Do
End If
TryNext:
rs.MoveNext
Loop
On Error GoTo 0
On Error GoTo TryNext
Do While Not rs.EOF
If Nz(rs.Fields("LockUser").Value, "") = "" Then
With rs
.Fields("LockUser").Value = strUser
.Update
lngQID = .Fields("ID").Value <====== ???
.Close
End With
Exit Do
End If
TryNext:
rs.MoveNext
Loop
On Error GoTo 0