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

This recordset is not updateable when using filter or ado recordset

I've looked at everything I can find on the Internet for why I get the error "This recordset is not updateable" when attempting to change a data element on a form. I created the form in Access 2007 directly from the source table. When I filter on the form manually, I can change a field succesfully. However, when I try to do anything programmatically, I get the error. I've tried adodb recordset from OpenArgs and with all records then a filter. My next step is to use a make table query to create temporary table and then an update query to use the temporary table to update the record table. Before I write all this code, I'm just wondering if anyone else has any ideas. The source table is an amalgamation from appending imported Excel files that I get every two weeks as .csv files. I thought maybe this was part of the problem, so I copied the table structure only and appended the data to see if it's some kind of conversion error. Same result. The form is set to updateable, Dynaset. I remember now that I was going to try setting the form property to Dynaset (inconsistent updates). I'll try that tomorrow, but I am going to post this since I've typed so much information. I've spent a day and a half on this and I'm running out of ideas. I can post code, but I've tried so many different things, I can't understand why any kind of filtering on the data causes it to be unupdateable.
Apr 20 '11 #1
5 3818
I don't see a way to delete this post, so I'll just reply that I solved my problem by using an UPDATE query.
Apr 21 '11 #2
TheSmileyCoder
2,322 Expert Mod 2GB
You can try taking a look at this article on bytes:
Reasons for a Query to be Non-Updatable
Apr 22 '11 #3
Thank you. I had read that article and I still don't know why my table cannot be updated. What I ended up doing was using a querydef and writing an update query and that worked. There are a couple hot buttons that my table pushes i the non-updateable query rules. 1. It's imported from Excel and 2. When imported it does not have a PK. I added a unique key, but that still didn't make it any happier. Very strange though. Maybe someday something will click and I'll know why I can't update the thing with a Select recordset.
Apr 26 '11 #4
TheSmileyCoder
2,322 Expert Mod 2GB
If you want to post code as well as the recordsource SQL of the form, I can look at it. Please identify the lines that err, and the exact err message given by Access.

Just to be sure, your table is IMPORTED from excel, not simply Linked to excel, correct?
Apr 26 '11 #5
Yes. I do import the table and then use an append query to tack it to the end of the rest of the fuel records. Thanks for the kind offer, but I actually no longer have the code that didn't work. I did not originally import the tables with a PK, but have since added that. Wonder if that might some how be the issue. I'm using the PK in my update query and it seems to work now. However, I do still have a problem that you might be able to look at for me. The update will stop working and I have ao do manage and repair to the dB. Probably a memory leak? Or something not closing? I've attached (what I hope is) the pertinent code. I appreciate your suggestions and refinements.
Attached Files
File Type: txt UPDATE_ODOM.txt (1.7 KB, 449 views)
Apr 26 '11 #6

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

Similar topics

1
by: Doug Ly | last post by:
Hi , connect to Blah user blah using blah ------------------------------------------------------------------------ Database Connection Information Database server = DB2/6000 7.2.3...
0
by: CFW | last post by:
I thought this was going to be easy but I'm missing something . . . I need to open an ADODB recordset using the recordset source for a list box on my for. When my form opens, the list box ADODB...
13
by: Seth Spearman | last post by:
Hey guys, I have the following code: '****************************************************** If Not Me.NewRecord Then Dim rs As DAO.Recordset Dim strBookmark As String Set rs =...
19
by: bdt513 | last post by:
I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails). I...
2
by: thechaosengine | last post by:
Hi eveyone, If anyone could advise on the following I would be truly greatful: I have a fairly standard set up. An IIS 5.1 website set up with anonymous access allowed in all areas of the site...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
10
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be...
0
by: BerkshireGuy | last post by:
Hello gurus. I have a function that queries our mainframe using an ADODB ODBC connection via a SELECT database. One of the fields is Premium. When I query this data via something like query...
2
Patropia
by: Patropia | last post by:
Hi, I have an iframe that's using designMode in which I'm loading some code. When including an iframe in that code (putting an iframe in the iframe) the entire frame goes blank. This only happens...
2
by: PaulR | last post by:
Hi, (DB2 LUW v8.2) When using parameter markers how does the optimizer evaluate filter factors? - and is it able to make use of distribution stats. for parm. markers? The reason I ask, is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.