Re: Cannot update DAO Recordset
- From: "bcap" <bcap@xxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2008 18:35:29 +0100
Most likely "MyQuery" is not updateable. If you open MyQuery directly from
the database window, can you update it manually?
If not, you might get some help here:
http://www.allenbrowne.com/ser-61.html
"Linq Adams via AccessMonster.com" <u28780@uwe> wrote in message
news:885f65fec6e41@xxxxxx
Why won't this code update my recordset? I get Error 3027 "Cannot update.
Database or object is Read Only." Form is based on a query with 4 fields,
which in turn is based on a table with the same 4 fields. Both the form
and
the query can be edited.
Microsotf DAO 3.6 Object Library is set in references
*******************Code******************
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("MyQuery")
Do While Not rs.EOF
rs.Edit
rs!MyCheckBox = -1
rs.Update
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
*****************End Code****************
Running Access 2003/SP2, Windows XP
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200808/1
.
- Follow-Ups:
- Re: Cannot update DAO Recordset
- From: Linq Adams via AccessMonster.com
- Re: Cannot update DAO Recordset
- References:
- Cannot update DAO Recordset
- From: Linq Adams via AccessMonster.com
- Cannot update DAO Recordset
- Prev by Date: RE: Event when Access table is accessed through ODBC ?
- Next by Date: Re: DBEngine.CompactDatabase vs Compact on Close
- Previous by thread: Cannot update DAO Recordset
- Next by thread: Re: Cannot update DAO Recordset
- Index(es):
Relevant Pages
|
Loading