davesmith202
Employee of Access World
- Local time
- Today, 03:46
- Joined
- Jul 20, 2001
- Messages
- 522
I have a Form that when opened runs through a Recordset, using the code below. However, it looks like the Query is uneditable because I get the following error:
cannot update. database or object is read-only 3027
Is it not possible to update records using a Recordset if your Form is based upon a Query?
Dave
cannot update. database or object is read-only 3027
Is it not possible to update records using a Recordset if your Form is based upon a Query?
Dave
Code:
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("qryAdwordsAzoogledCleaned", dbOpenDynaset)
rs.MoveLast
rs.MoveFirst
Do Until rs.EOF
rs.Edit
Select Case Profit
End Select
rs.Update
rs.MoveNext
Loop
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing