473,480 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

operation my be an updatable query

Hello I have this sql that triggers the abovementioned error.

UPDATE ra SET ra.Year_1_Cost = (SELECT sum(conversion*Year_1_accom) AS
year1
FROM accomfundlevels
WHERE driver_id=168 And level_id=1)
WHERE ra.driver_id=5 And ra.level_id=0;

The Select statement works fine in isolation but when I put it into the
whole statement then it gives and error in access.

"operation my be an updatable query"

Does anyone know why this is so?

Thanks in advance

Jan 16 '07 #1
2 1227
Enrique:

I think if you remove the AS year1 from your select statement, you'll
be fine.

HTH,
Jana

Enrique Rojas wrote:
Hello I have this sql that triggers the abovementioned error.

UPDATE ra SET ra.Year_1_Cost = (SELECT sum(conversion*Year_1_accom) AS
year1
FROM accomfundlevels
WHERE driver_id=168 And level_id=1)
WHERE ra.driver_id=5 And ra.level_id=0;

The Select statement works fine in isolation but when I put it into the
whole statement then it gives and error in access.

"operation my be an updatable query"

Does anyone know why this is so?

Thanks in advance
Jan 17 '07 #2
I ended up making a temp table updating it with the data I wanted then
joining it with the table i wasted to change and updated it from there.

Jana wrote:
Enrique:

I think if you remove the AS year1 from your select statement, you'll
be fine.

HTH,
Jana

Enrique Rojas wrote:
Hello I have this sql that triggers the abovementioned error.

UPDATE ra SET ra.Year_1_Cost = (SELECT sum(conversion*Year_1_accom) AS
year1
FROM accomfundlevels
WHERE driver_id=168 And level_id=1)
WHERE ra.driver_id=5 And ra.level_id=0;

The Select statement works fine in isolation but when I put it into the
whole statement then it gives and error in access.

"operation my be an updatable query"

Does anyone know why this is so?

Thanks in advance
Jan 18 '07 #3

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

Similar topics

3
4497
by: David K | last post by:
Hello, I've been trying to make my db web applications to work in my test server and I keep getting this everytime I try to modidy the database: Microsoft JET Database Engine error '80004005'...
2
1870
by: Johnny M | last post by:
I have been using Access since office 4.3. I have just upgraded to Office 2003 and am having issues with creating updatable queries. If I link one table to a selection query based on the same...
3
12320
by: jallegue | last post by:
I am working with MS-Access 2002. The two tables that I am working with are: dbo_IDX_FRS_account_bal_by_month ==> this is a linked table to SQL == local table The query that is executed is...
1
1294
by: Mr. x | last post by:
Hello, I have hosted my site in an hosting server. I got the following message, while trying inserting a record to the database : Operation must use an updatable query. For what I know, I...
27
18363
by: Bob | last post by:
running access 2k; mdb w/ linked tables to another mdb (front/back-end); trying to run a query that updates a table FROM information from a crosstab query. I AM NOTT trying to update the...
10
3922
by: cyber0ne | last post by:
I'm having a bit of trouble adding records to a local .DB file (using a Paradox connection string). I checked the file permissions, and for testing purposes set Everyone to Full access. But it...
2
1750
Ranjan kumar Barik
by: Ranjan kumar Barik | last post by:
Hello everybody ! I am trying to insert into an access table using ADO in ASP. But i am getting the error message: "Operation must use an updatable query". I have checked the security settings...
10
4088
by: anniebai | last post by:
Can someone help me with this query, which gives the error message "operation must use an updatable query"? Thanks a lot. UPDATE publications set publications.pmcid = (select fname.pmcid from fname...
8
4414
geolemon
by: geolemon | last post by:
I'm trying to perform an update, and I can't avoid this error - I've tried this query what must be 5 different very fundamentally different ways now. Arg. I used to be a DBA in large DB2 and SQL...
0
7033
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
6903
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
7071
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
4763
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
4468
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
2987
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...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
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.