• Delete queries-cascade (Access 1001)

    Author
    Topic
    #362918

    I was playing around with delete queries where the referential integrity was engaged and cascade delete was activated. All the books I have read states you put both the one and many side tables on the QBE. When I do that the query does not work. If I have only the one side on it works properly deleting from both tables. What is the proper way of doing a delete query with cascade delete engaged? Thanks Fay

    Viewing 0 reply threads
    Author
    Replies
    • #552436

      If you have a cascading delete set up, you only need the one side of the relationship. The related records will be deleted from the many side no matter what. If the tables are related but you don’t have cascading deletes turned on, *then* you need both tables in the query.

    Viewing 0 reply threads
    Reply To: Delete queries-cascade (Access 1001)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: