To delete the relationship between two tables you can the relationship line and select Delete

To delete the relationship between two tables you can the relationship line and select Delete

Sometimes you may want to print a hard copy of the Relationships window or you may want to delete the relationship between two tables.

  1. Click the Database Tools tab.
  2. Click the Relationships button.

    To delete the relationship between two tables you can the relationship line and select Delete

    The Design contextual tab appears under Relationship Tools.

  3. Click the Relationship Report button.

    To delete the relationship between two tables you can the relationship line and select Delete

    A report showing the tables and relationships appears in Print Preview mode.

    If you want to modify the report before printing, click the Close Print Preview button and edit the report in Design View.

  4. Click the Print button.

    The Print dialog box appears.

  5. Select the desired print settings and click OK.

    The Relationships report is printed.

  6. Click the Close Print Preview button.

    To delete the relationship between two tables you can the relationship line and select Delete

    The report appears in Design View.

  7. Click the Relationships report's Close button.

    To delete the relationship between two tables you can the relationship line and select Delete

Delete a Table Relationship

Access is very restrictive about letting you modify a related table, and often you must temporarily delete the relationship between two tables, modify one of the tables, and then re-connect them.

Here’s how to delete a table relationship.

  1. Click the join line that connects the tables.
  2. Press the Delete key.

    Access asks you to confirm that you really want to delete the relationship.

  3. Click Yes.

    To delete the relationship between two tables you can the relationship line and select Delete

Access deletes the relationship between the two tables.

  • #1

G'day,
I had a relationship between my Employee file and another 1-Many file (tblJobTitle) in my relationship diagram. So when I open the Employee file I have records with a plus (+) sign on them. When I click the + on one of the records I can see the related tblJobTitle records.

After some thinking about the design I decided that I did not need the relationship between the two tables so I deleted the 1-Many table without first deleting the link between the two tables.

However when I open the Employees file I still see the + on the LHS of each record and if I click on same the old tblJobTitle records are still there.

I am wondering what I need to do to destroy the old relationship?

To delete the relationship between two tables you can the relationship line and select Delete

arnelgp

..forever waiting... waiting for jellybean!

  • #2

put your table in design view.
on its property Subdatasheet Name, set it to [None].

  • #3

I decided to make a copy of the tblJobTitle table called tblJobTitlecopy and then deleted the original table "tblJobTitle"
Then I reopened the employee table and the + signs were still there, but when I clicked on same I got the following error message
[The table or query name "tblJobTitle" you entered in either the property sheet or macro is misspelled or refers to a table or query that doesn't exist]

After thinking about it I renamed my backup copy "tblJobTitleCopy" back to "tblJobTitle" and the Employee file opens with the + sign on each record and links back to the tblJobTitle records.

So in a nutshell I am stumped how to remove the old relationship or subrecords from my Employee Table.

  • #4

put your table in design view.
on its property Subdatasheet Name, set it to [None].

Thank you ever so much. I did not know that there was a property sheet for the table. Setting it to "None" did the trick!

Please ignore my second post and many thanks

To delete the relationship between two tables you can the relationship line and select Delete

arnelgp

..forever waiting... waiting for jellybean!

  • #5

goodluck with your project!

  • #6

That didn't remove the relationship. It just changed the subdatasheet property.

To actually remove the relationship, open the relationships window and press the show relationships icon. The table you deleted will reappear with the relationship. You have to click on the relationship line and delete that to actually delete the relationship. Then you can delete the tables from the window. Don't forget to also remove the foreign key from the child table to complete the process.

If you have the AutoCorrect feature enabled ( it is enabled by default), you will find that Access will "help" you by assigning the old relationships to the new table name and it goes downhill from there. You would be better off turning off the AutoCorrect feature and then turning it on ONLY when you want to rename a table or a column of a table AND you want Access to help you to propagate the change. Then you have to actually open every object that the change will effect since the changes are not propagated immediately. They are propagated only the next time an object is opened. Once you have opened and closed all affected objects, turn off NameAutoCorrect.

I attatched two files. The doc file is a copy of a MS article (including the link to the original article which may no longer be valid) and the other is a summary of the article as a PP presentation I made for our local Access Users Group.

  • NameAutocorrectPPT.zip

    182.7 KB · Views: 59

  • NameAutoCorrectDOC.zip

    81.3 KB · Views: 75

  • #7

Pat is absolutely correct in stating that removing a subdatasheet does not remove the relationship that may exist between the tables

However when creating a subdatasheet, you will be asked whether you want a relationship to be created between the tables. So its possible no relationship exists anyway!

My advice would be to never use subdatasheets. Although it may seem convenient to have 'related' info all visible from one place, they can be confusing to end users especially if you have several 'cascading' subdatasheets. Their use also causes apps to run slower as each table has to be loaded into memory when a form is opened rather than just the one table.

For a detailed article about relationships & their use with referential integrity (together with further details on subdatasheets), see this 3 part article on my website: Relationships Advice

How do you delete a relationship between two tables?

Delete a table relationship.
On the Database Tools tab, in the Relationships group, click Relationships..
On the Design tab, in the Relationships group, click All Relationships. ... .
Click the relationship line for the relationship that you want to delete. ... .
Press the DELETE key..

Which option help you to delete the relationship in a table?

The relationships applied on the tables can be removed with the help of *remove* option.

What is the relationship between two tables?

A relationship works by matching data in key columns, usually columns (or fields) that have the same name in both tables. In most cases, the relationship connects the primary key, or the unique identifier column for each row, from one table to a field in another table.

How do you delete a many to many relationship in a database?

To avoid this problem, you can break the many-to-many relationship into two one-to-many relationships by using a third table, called a join table. Each record in a join table includes a match field that contains the value of the primary keys of the two tables it joins.