Boa noite, podem me ajudar, não sei, começou a apresentar o erro e antes não ocorria.
Function OnOfLine()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("select * from historicoDeAcesso where Usuario='" & UserLog & "' and OnLine='" & UsuarioOnline & "'", dbOpenDynaset)
While Not rs.EOF
rs.Edit
rs![OnLine] = "OfLine"
rs![DataHoraDaSaida] = Texto161
rs.Update
rs.MoveNext
Wend
rs.Close
db.Close
End Function
Function OnOfLine()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("select * from historicoDeAcesso where Usuario='" & UserLog & "' and OnLine='" & UsuarioOnline & "'", dbOpenDynaset)
While Not rs.EOF
rs.Edit
rs![OnLine] = "OfLine"
rs![DataHoraDaSaida] = Texto161
rs.Update
rs.MoveNext
Wend
rs.Close
db.Close
End Function