Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7912909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:43:11+00:00 2026-06-03T13:43:11+00:00

so i have to tables that have a relation between them – relation type:

  • 0

so i have to tables that have a relation between them – relation type: one to many.
and i thought that the following query:

DELETE Orderstbl.*, ItemsInOrdertbl.*
FROM Orderstbl INNER JOIN ItemsInOrdertbl ON Orderstbl.OrderID = ItemsInOrdertbl.OrderId
WHERE (((Orderstbl.OrderID)=26));

will delete all the rows in both tables that contain the OrderID = 26
but to my surprise it filled the following error :

could not delete from specified tables

tried to find an answer on google , didnt help much thanks in advance 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:43:12+00:00Added an answer on June 3, 2026 at 1:43 pm

    You could also create a relationship that includes CASCADE DELETE, then when you delete from one it will delete from the other

    from microsoft:

    If you select the Cascade Delete Related Records check box when you
    define a relationship, any time that you delete records in the primary
    table, Microsoft Access automatically deletes related records in the
    related table. For example, if you delete a customer record from the
    Customers table, all the customer’s orders are automatically deleted
    from the Orders table (this includes records in the Order Details
    table related to the Orders records). When you delete records from a
    form or datasheet with the Cascade Delete Related Records check box
    selected, Microsoft Access warns you that related records may also be
    deleted. However, when you delete records using a delete query,
    Microsoft Access automatically deletes the records in related tables
    without displaying a warning.

    Using the CASCADE DELETE is a simple and clean way to make sure the correct records are removed from both tables.

    Here is another article discussing CASCADE DELETE with MS-Access.

    Delete one or more records from an Access database

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables with one_to_one relation between them Table one: User - has
I have the following table, Persons_Companies , that shows a relation between persons and
I have 2 tables that their rows have one on one relation.. For you
I have two tables that I am joining with the following query... select *
I have 2 tables with a relation between them: Users table: user_id, Blogs table:
I am learning django admin, i have to models with a one-to-many relation between
I have two tables. Those tables have two relation between them. Table 1 *
I have two tables, Products and BundleProducts that have o2o relation with BaseProducts. A
I have many tables that use Lookup/Enum references for most of their column values.
I have some tables that benefit from many-to-many tables. For example the team table.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.