473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Recordset read only problem

6
Hi all!!

I would greatly apreciate any help in this!!

I have problems with a recordset (it says that it is read only and I need to modify some of its values) and then I tried to create the simpliest version to see where is the problem. I keep having the same problem.

The simplest version is just:

Dim Rs2 As DAO.Recordset
Sql_Str = "SELECT 0 As Id, '' As Cod, 0 As IdOff, 0 as QToT, 0 as Pro, 0 As TotCost"
Set Rs2 = DBsa.OpenRecordset(Sql_Str, dbOpenDynaset)

When I try to modify any value in any field in any record in Rs2 ... it keeps saying that it is read-only.

Any idea about what happens and how to solve the problem??

Thanks a lot for your help!!!
Mar 18 '17 #1
2 1534
PhilOfWalton
1,430 Expert 1GB
The Obvious thing is that no table is defined.

Try building a straightforward query using the QBE grid, then copy it's SQL into your VBA project.

Phil
Mar 19 '17 #2
Lirsy
6
Ep!!!!

So evident!! :-(

You can't update anything you don't have!!! :-(

Thanks a lot!!!
Mar 19 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dave | last post by:
Hi all, I've been trying to figure this out for the last day and a half and it has me stumped. I've got a web application that I wrote that keeps track of trading cards I own, and I'm moving it...
6
by: HKM | last post by:
Hello, I have a query engine that builds the SQL Query to obtain the recordSet. Following is an Exmaple Query that my QueryBuilder outputted SELECT * FROM BookInfo WHERE BookName LIKE...
2
by: corepaul | last post by:
I am fairly new to Access and I have a problem trying to use bookmarks with a recordset. I have a recordset dimensioned as, Dim rstFoodDesc As ADODB.Recordset ' recordset Dim bMark As...
6
by: AlanMF | last post by:
A problem recently cropped up that I have not seen before and I am wondering anyone has seen this one? The 2 SQl Select statements on my ASP page differ by the addition of one column...
1
by: Lazster | last post by:
Hi, I'd really appreciate some help here people. I am trying to insert some values in a table in another database and not getting the results I am expecting. I am simply trying to insert values...
7
by: tnjarrett | last post by:
Hello, I have a MS Access continuous subform that was using a query as the recordsource. I changed it to use a recordset instead because when the query was used, the changes to the subform values...
12
Seth Schrock
by: Seth Schrock | last post by:
I have the following subroutine that I'm using to bookmark the current record, do a requery of the form, and then go back to the record that I bookmarked. Here is my code: Private Sub FormRefresh()...
8
by: RobbieBee | last post by:
Hi, I'm using VBA in Access 2010 to open a DAO recordset and populate with results from a SQL Server 2008 R2 stored procedure. However, when I try to edit the contents with the '.edit' method I...
3
Alireza355
by: Alireza355 | last post by:
Dear all, a few years ago, I made an access database with a lot of forms, queries, etc... I stopped using the database for a few years, and now that I went back to it, I notice a problem: In...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.