Matty
...the Myth Buster
- Local time
- Today, 17:16
- Joined
- Jun 29, 2001
- Messages
- 395
I'm trying to update a recordset with data entered in a textbox on a form, but the Edit property of the recordset isn't available. Here is my code so far:
Dim Response As Integer
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("RESPIRAT", dbOpenDynaset)
Response = MsgBox("Are you sure you want to replace the old date?", vbOKCancel)
If Response = 1 Then
With rst
.Edit <--- Error
!F_UP_DATE = Forms!Cancelation!Text25.Text
.update
End If
rst.close
Why can't I access the Edit property?
Dim Response As Integer
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("RESPIRAT", dbOpenDynaset)
Response = MsgBox("Are you sure you want to replace the old date?", vbOKCancel)
If Response = 1 Then
With rst
.Edit <--- Error
!F_UP_DATE = Forms!Cancelation!Text25.Text
.update
End If
rst.close
Why can't I access the Edit property?