A
Allie
I have data going to a second table (tableB) when a
particular criteria is met. I can add data using the
recordset Addnew method, I can delete data but I can not
update the data using the Edit method.
I am using Acc97 and DAO 3.51.
Here is the code I am using:
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tableB", dbOpenDynaset)
With rs
Edit
.Fields("BkID") = Me.ID
.Fields("User") = Me.User
.Fields("StateNo") = Me.StateNo
.Fields("Amount") = Me.Amount
.Fields("DateEntered") = Me.Date
.Fields("EnteredBy") = CurrentUser()
.Update
.Close
End With
I've tried using the MoveNext and Find and seek methods
with no luck.
Please help
Thanks
particular criteria is met. I can add data using the
recordset Addnew method, I can delete data but I can not
update the data using the Edit method.
I am using Acc97 and DAO 3.51.
Here is the code I am using:
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tableB", dbOpenDynaset)
With rs
Edit
.Fields("BkID") = Me.ID
.Fields("User") = Me.User
.Fields("StateNo") = Me.StateNo
.Fields("Amount") = Me.Amount
.Fields("DateEntered") = Me.Date
.Fields("EnteredBy") = CurrentUser()
.Update
.Close
End With
I've tried using the MoveNext and Find and seek methods
with no luck.
Please help
Thanks