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!
5 1743 @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.
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
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
EXIST function worked great, thanks!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: MLH |
last post by:
What is the meaning of this error?
Operation Must Use An Updateable Query
???
|
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...
|
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)...
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
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...
| |