473,624 Members | 1,993 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_missingroad nummaster.*
FROM qry_missingflee ts INNER JOIN (tbl_missingroa dnummaster INNER JOIN tbl_locodata ON tbl_missingroad nummaster.ROAD_ NUMBER = tbl_locodata.RO AD_NUMBER) ON qry_missingflee ts.FLEET_NAME = tbl_locodata.FL EET_NAME;


Ever run into this before?
Thanks!
Nov 26 '08 #1
5 1755
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_missingfle ets" from the table "tbl_missingroa dnummaster". 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_missingroad nummaster.ROAD_ NUMBER, tbl_missingroad nummaster.FLEET _NAME, tbl_missingroad nummaster.DOWNL OAD_DATE, tbl_missingroad nummaster.MOTOR _MWHRS
FROM tbl_missingroad nummaster, tbl_missingflee ts
WHERE (((tbl_missingr oadnummaster.RO AD_NUMBER)=[tbl_missingflee ts]![FLEET_NAME]) AND ((tbl_missingro adnummaster.FLE ET_NAME)=[tbl_missingflee ts]![FLEET_NAME]) AND ((tbl_missingro adnummaster.DOW NLOAD_DATE)=[tbl_missingflee ts]![FLEET_NAME]) AND ((tbl_missingro adnummaster.MOT OR_MWHRS)=[tbl_missingflee ts]![FLEET_NAME]));

...one way I've found to accomplish this is to run an update query for tbl_missingroad nummaster and set all the records common to both tables to null, then create a delete query to delete all null records from tbl_missingroad nummaster, 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
2121
by: MLH | last post by:
What is the meaning of this error? Operation Must Use An Updateable Query ???
10
3944
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 seems that I can add one and only one record to the table, any other attempts to insert a record generate the error: "Operation Must Use An Updatable Query" I can access the table via other means, delete that one record, try again, same...
1
4739
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) with the same script woking fine in my local server but in the main webserver its giving the above message. More over couldn't edit the data also over there. Thats why I am asking, is there any posibility............. I don't have permission to...
2
1763
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 of the .mdb file. Still it,s showing the same error. I have also taken an output of the query using "response.write" and use it, by copying it, in the access database. It worked there but it,s not working through the code. Any suggessions !
1
3038
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 database and open it and the query ran, now it does not run. As far as the form is concerened no "cancellation" was done. Any ideas, since the message is so generic, I can't find what it is referring to. Dim db As DAO.database Dim qdf As...
5
2110
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, C4 VARCHAR(15) NOT NULL
1
2749
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 whenever i am trying to run this application then it through the exception. I have used MS Access as a database. The error is as follows... Server Error in '/ASG' Application....
5
6468
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 opened the Form again, it came up with this error "Query must have atleast one destination field", i had been coming across this error several times and could not find a solution, typically i just pasted the query and it would be fine as long as i...
7
4833
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 of the main form which refreshes all the subforms. If this DoCmd statement is not executed, then I don't receive the error. I tried a "DoCmd.OpenQuery..." instead of a report but get the same error. I want the user to be able to...
0
8173
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8475
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7159
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4079
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
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 we have to send another system
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.