473,487 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why is this query not updateable

I'm trying to update a Select statement in code. On the rs.Edit line of code
(not shown) I keep getting an error that the object or database is not
updatable.

Why?

Here's the select statement used for the DAO recordset

SELECT A.FIELD1, A.FIELD2, A.FIELD3, A.FIELD4, A.FIELD5, A.FIELD6,
B.FIELD1, B.FIELD2, B.FIELD3, B.FIELD4, B.FIELD5, B.FIELD6
FROM [MAIN_TABLE] AS A, [BACKUP_TABLE] AS B
WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = B.FIELD2 AND A.FIELD3 = B.FIELD3;

I'm trying to select the identical records from the two tables so I can then
check if any of the non-key fields are different. But this error has me
stymied.

Thanks.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 18 '06 #1
4 1573
Hi.
I'm trying to update a Select statement in code. On the rs.Edit line of code
(not shown) I keep getting an error that the object or database is not
updatable.

Why?
Your query is using a Cartesian join. Use an ANSI SQL join instead:

SELECT A.Col1, B.Col2
FROM TableA AS A INNER JOIN TableB AS B ON A.DeptID = B.DeptID;

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact info.
"rdemyan via AccessMonster.com" <u6836@uwewrote in message
news:6aebfd239f461@uwe...
I'm trying to update a Select statement in code. On the rs.Edit line of code
(not shown) I keep getting an error that the object or database is not
updatable.

Why?

Here's the select statement used for the DAO recordset

SELECT A.FIELD1, A.FIELD2, A.FIELD3, A.FIELD4, A.FIELD5, A.FIELD6,
B.FIELD1, B.FIELD2, B.FIELD3, B.FIELD4, B.FIELD5, B.FIELD6
FROM [MAIN_TABLE] AS A, [BACKUP_TABLE] AS B
WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = B.FIELD2 AND A.FIELD3 = B.FIELD3;

I'm trying to select the identical records from the two tables so I can then
check if any of the non-key fields are different. But this error has me
stymied.

Thanks.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 18 '06 #2
Thanks. It looks like that did the trick, but I need to do more testing.

'69 Camaro wrote:
>Hi.
>I'm trying to update a Select statement in code. On the rs.Edit line of code
(not shown) I keep getting an error that the object or database is not
updatable.

Why?

Your query is using a Cartesian join. Use an ANSI SQL join instead:

SELECT A.Col1, B.Col2
FROM TableA AS A INNER JOIN TableB AS B ON A.DeptID = B.DeptID;

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact info.
>I'm trying to update a Select statement in code. On the rs.Edit line of code
(not shown) I keep getting an error that the object or database is not
[quoted text clipped - 14 lines]
>>
Thanks.
--
Message posted via http://www.accessmonster.com

Dec 18 '06 #3
You're welcome. Good luck with your queries.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact info.
"rdemyan via AccessMonster.com" <u6836@uwewrote in message
news:6aec954565b56@uwe...
Thanks. It looks like that did the trick, but I need to do more testing.

'69 Camaro wrote:
>>Hi.
>>I'm trying to update a Select statement in code. On the rs.Edit line of
code
(not shown) I keep getting an error that the object or database is not
updatable.

Why?

Your query is using a Cartesian join. Use an ANSI SQL join instead:

SELECT A.Col1, B.Col2
FROM TableA AS A INNER JOIN TableB AS B ON A.DeptID = B.DeptID;

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact info.
>>I'm trying to update a Select statement in code. On the rs.Edit line of
code
(not shown) I keep getting an error that the object or database is not
[quoted text clipped - 14 lines]
>>>
Thanks.

--
Message posted via http://www.accessmonster.com

Dec 18 '06 #4
"rdemyan via AccessMonster.com" <u6836@uwewrote in
news:6aec954565b56@uwe:
Thanks. It looks like that did the trick, but I need to do more
testing.
We'll all be relieved when you confirm that this is OK!

--
Lyle Fairfield

http://www.ffdba.com/toyota/BurlingtonToyotaLease.htm

(just a sad story - read if bored)
Dec 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3566
by: Steve | last post by:
I have a products table where the PK is ProductID. Also have the standard Orders table and OrderDetails table. I created a query that joins the Orders table and OrderDetails table. The query...
3
17476
by: jm | last post by:
I have a simple query. It has two tables. If I open the tables separately, I can add records. If I open them up together, the recordset is not updateable. As best I know, this has never been a...
3
2854
by: Ray | last post by:
I have below query in Access 97 but it is not updateable by entering or editing data in the query. Can someone advise how to modify it to be updateable one. SELECT .PCode, .Model, .Description,...
5
1629
by: Jack | last post by:
TblProduct ProductID ProductName Selected (Y/N) TblOrder OrderID CustomerID TblOrderDetail
4
4322
by: Gilberto Campos | last post by:
Hi all. I am having a strange problem. I am developping an application that acceses an Access db through Jet (.UDL files). I have writen parametric INSERT queries that work fine. I am now...
1
1124
by: Pravin A. Sable | last post by:
Dear All Error mentioned below this e-mail was NOT fixed. 1) After user ASP.net was given write privileges. 2) After giving write permission in IIS and Windows Explorer. It was fixed, After...
17
1525
by: Michael C# | last post by:
Question - I keep getting the above error when I try to run an INSERT query against an Access database. I'm running XP Professional and VS.NET 2003. I run SELECT queries from ASP.NET against it...
4
302
by: Derek Van Cuyk | last post by:
Hi everyone! I'm trying to write a web application in school that utilizes a MS Access database. I can read and everything fine from it but when I try to add a new record I get an exception that...
3
8731
by: turtle | last post by:
I have Two tables (Table1 and Table2). Both tables have a common field called part number. Table 1 contains an extra field that i would like to update table 2 to match if the part number matches....
2
1837
by: imnewtoaccess | last post by:
Hello everybody, I am completely new to access and am facing a problem. I am trying to run the following query from the query designer ( i am using access 2000 and the table that i am trying...
0
7132
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
7180
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...
1
6846
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
7341
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...
1
4870
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...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.