473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: "Operation must use an updatable query."

22 New Member
I've been getting the following error in a delete query.

This is the SQL:

DELETE tbl_missingroadnummaster.*
FROM qry_missingfleets INNER JOIN (tbl_missingroadnummaster INNER JOIN tbl_locodata ON tbl_missingroadnummaster.ROAD_NUMBER = tbl_locodata.ROAD_NUMBER) ON qry_missingfleets.FLEET_NAME = tbl_locodata.FLEET_NAME;


Ever run into this before?
Thanks!
Nov 26 '08 #1
5 1743
PianoMan64
374 Recognized Expert Contributor
@denveromlp
Hello denveromlp,

Since you're trying to link acrossed multiple table, this is a feature that isn't allowed at all. You'll have to delete each table with a set of conditions so you don't delete every record.

But once you join a table, it makes it READ ONLY.

Sorry I couldn't be of more help. Without any more detail that you have, it's kind of hard to guess.

Hope that helps,

Joe P.
Nov 26 '08 #2
OldBirdman
675 Contributor
If these tables were linked using Tools->Relationships... and "Enforce Referential Integrity were checked, you could then click "Cascade Delete Related Records".

Deleting the table on the "One" side of a "One-to-Many" relationship will also delete the records on the "Many' side.

OldBirdman
Dec 1 '08 #3
denveromlp
22 New Member
OK, so joining tables disallows you to complete a delete query.

I'm trying to delete records contained in the table "tbl_missingfleets" from the table "tbl_missingroadnummaster". Now I'm trying the following SQL, but it wants me to "specify the table containing the reconds I want to delete." How do I do that?

DELETE tbl_missingroadnummaster.ROAD_NUMBER, tbl_missingroadnummaster.FLEET_NAME, tbl_missingroadnummaster.DOWNLOAD_DATE, tbl_missingroadnummaster.MOTOR_MWHRS
FROM tbl_missingroadnummaster, tbl_missingfleets
WHERE (((tbl_missingroadnummaster.ROAD_NUMBER)=[tbl_missingfleets]![FLEET_NAME]) AND ((tbl_missingroadnummaster.FLEET_NAME)=[tbl_missingfleets]![FLEET_NAME]) AND ((tbl_missingroadnummaster.DOWNLOAD_DATE)=[tbl_missingfleets]![FLEET_NAME]) AND ((tbl_missingroadnummaster.MOTOR_MWHRS)=[tbl_missingfleets]![FLEET_NAME]));

...one way I've found to accomplish this is to run an update query for tbl_missingroadnummaster and set all the records common to both tables to null, then create a delete query to delete all null records from tbl_missingroadnummaster, just curious if there is a way to do this in one query
Dec 3 '08 #4
ChipR
1,287 Recognized Expert Top Contributor
Take a look at the examples here:
SQL: EXISTS Condition
Dec 3 '08 #5
denveromlp
22 New Member
EXIST function worked great, thanks!
Dec 3 '08 #6

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

Similar topics

5
2108
by: MLH | last post by:
What is the meaning of this error? Operation Must Use An Updateable Query ???
10
3923
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...
1
4733
by: chitara | last post by:
is there any posibility to block mysql port or someting? I am getting "Error ,query failed" during adding any data through the admin panel of that website:-( same softwares(php, mysql and IIS)...
2
1752
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...
1
3028
by: paulw4 | last post by:
I have the code below to run a query, that is created from a "fill in the blanks" form. I am now getting the error "You cancelled the previous operation" Earlier when I got this I closed the...
5
2100
by: lsllcm | last post by:
Hi All, I have one question about many "or" operation make system choose incorrect index There is one table TT ( C1 VARCHAR(15) NOT NULL, C2 VARCHAR(15) NOT NULL, C3 VARCHAR(15) NOT NULL,...
1
2740
by: pavya | last post by:
Hi, I have developed one Web application. At that time my system had a FAT file system on it and this application worked properly. But now i have converted FAT file system to NTFS file system and...
5
6452
by: jaishu | last post by:
Hi , I am using a form based on a query. The form is locked and the fields are not editable, but when i just tried typing something, the contents on the form didnt change, but when i closed and...
7
4820
by: EManning | last post by:
Using A2003. I'm receiving this error when returning from a "DoCmd.OpenReport..." statement. I have a tab control with a subform on every tab. The user selects an item from a combobox at the top...
0
7132
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
7009
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
7178
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
7223
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
7390
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
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
302
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.