473,403 Members | 2,338 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,403 software developers and data experts.

Read-only data instead of Updatable records

Hi all,

I am having trouble with DAO (VB6) reading an Access database. I keep getting a "read-only" recordset instead of Updatable one.

Expand|Select|Wrap|Line Numbers
  1.       Set qdfLocal = dbsCurrent.OpenRecordset(myQuery, dbOpenDynaset)
  2.  
the help file suggests that the Jet engine can't create an editable recordset, but I don't know where to look for the error.
This code works in other parts of the application (different table).
I have tried recreating the table in Access and copying the data into that, to no avail.

Any help would be welcome
thanks
Aug 15 '12 #1
2 1538
Killer42
8,435 Expert 8TB
I'd hazard a guess that it depends on what myQuery says. If it's a table, then probably you should be able to update it. But if it's a complex query using JOINs and so on, maybe not. If it uses any aggregate functions, then I'd expect updating is impossible (on the other hand, I'm no SQL expert).

However, you're likely to find more Access-related expertise over in our Access/VBA forum.
Aug 16 '12 #2
QVeen72
1,445 Expert 1GB
Hi,

How is the Query...?
Say if you are querying from multiple tables, with Join, then the recordset will be read-only.

If the Query is for Single Table, then 'dbOpenDynaset', should work...


Regards
Veena
Aug 16 '12 #3

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

Similar topics

12
by: Nhmiller | last post by:
When I start to type the data for a new record, I would like a dropdown box to open next to it from which I can choose the data from a previously entered record that starts with the same letter....
2
by: Scott Baird | last post by:
HELP!!! I've got a DB with two tables (relationships with a autonumber). The database works just fine, but I've got a report I simply can't make work. I've made a query that uses data from...
1
by: Bob Alston | last post by:
I have a local nonprofit that has a database with a rather unusual record structure. The data about their customers is stored as one value per record. So the access table definition is:...
8
by: jdvon | last post by:
Whe I run a report based on the table which collects data from the entry form teh report in some cases displays the reference primary key of the item reher than the record itself. Pls. help jd
3
by: jde357 | last post by:
I have MS SQL data that I'm ODBC querring into Access to allow some simple reporting to be done on the data. That data is event driven, so I get records that the particular event is concurrent. ...
4
by: mathanraj76 | last post by:
I current doing a project for "CWS" invoices for data entry in ms access 2000 I have a diffulcuties in the textbox. for an exampe : In one invoices may have up to 4 customer .But in 1 invoice...
4
by: Neil | last post by:
I previously posted about data shifting between records in my Access 2000 MDB with a SQL Server 7 back end, using ODBC linked tables. Every once in a while, data from one record mysteriously...
4
by: Neil | last post by:
Is there a problem with stability when one uses too many text (memo) fields? I'm having a problem with data from one record occasionally ending up in another record, though apparently not through...
0
by: hancjiao | last post by:
"Neil" <nospam@nospam.netдÈëÏûÏ¢ÐÂÎÅ:7Tquj.11650$Ej5.10391@newssvr29.news.prodigy.net...
1
by: Jackmac | last post by:
Hi there, Hopefully an easy one for someone. I'm writing a small app (Visual Studio 2008) which will take an existing access database we have and show it in a form I'm writing. The fields have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.