Porsche996GT2
Programmer
Hello all,
I'm trying to use the Edit method in Access to change an item of a recordset into something else. Here's the code that I have:
Sub Update2()
Dim dbsOPSTool As Database
Dim Logoff As Recordset
Dim LOS As String
Dim NewLOS As String
NewLOS = 2
Set dbsOPSTool = OpenDatabase("OOPS.mdb")
Set Logoff = dbsOPSTool.OpenRecordset("tblMaintenance")
With Logoff
.Edit
LOS = !LogOutStatus
!LogOutStatus = NewLOS
.Update
End With
End Sub
I try to run this and it's giving me a message that the Edit method is not a data member or it's not found. I also have DAO 3.6 enabled in my references. How do I get this to work? Please help! Thanks in advance.
I'm trying to use the Edit method in Access to change an item of a recordset into something else. Here's the code that I have:
Sub Update2()
Dim dbsOPSTool As Database
Dim Logoff As Recordset
Dim LOS As String
Dim NewLOS As String
NewLOS = 2
Set dbsOPSTool = OpenDatabase("OOPS.mdb")
Set Logoff = dbsOPSTool.OpenRecordset("tblMaintenance")
With Logoff
.Edit
LOS = !LogOutStatus
!LogOutStatus = NewLOS
.Update
End With
End Sub
I try to run this and it's giving me a message that the Edit method is not a data member or it's not found. I also have DAO 3.6 enabled in my references. How do I get this to work? Please help! Thanks in advance.