G
Guest
I am trying to rewrite the following code, using ADO instead but I am having
trouble with the ".edit". I keep getting a message that it is not a method.
what would be the equivelent in ADO to the following snippet of code?
thanks
Al
*******************************************
Dim strSql As String, db As Database, rst As Recordset
strSql = "SELECT EMP_ID, Assigned FROM tblkpEmployees where Emp_ID='" &
Me.EmpTrk_Emp_ID & "';"
Set db = CurrentDb()
Set rst = db.OpenRecordset(strSql, dbOpenDynaset)
rst.MoveFirst
With rst
.Edit
!assigned = -1
.Update
End With
rst.Close
db.Close
trouble with the ".edit". I keep getting a message that it is not a method.
what would be the equivelent in ADO to the following snippet of code?
thanks
Al
*******************************************
Dim strSql As String, db As Database, rst As Recordset
strSql = "SELECT EMP_ID, Assigned FROM tblkpEmployees where Emp_ID='" &
Me.EmpTrk_Emp_ID & "';"
Set db = CurrentDb()
Set rst = db.OpenRecordset(strSql, dbOpenDynaset)
rst.MoveFirst
With rst
.Edit
!assigned = -1
.Update
End With
rst.Close
db.Close