473,804 Members | 3,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Delete relationship

I deleted a relationship in the relationship view, but when I create a
query that includes those two tables, the relationship reappears. When
I go back to the relationship view there is NO relationship but I can't
seem to get rid of it for queries (without manually doing it for each
query). Can anyone tell me whats going on??? TIA

Nov 13 '05 #1
7 5104

"francophon e77" <fr***********@ hotmail.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
I deleted a relationship in the relationship view, but when I create a
query that includes those two tables, the relationship reappears. When
I go back to the relationship view there is NO relationship but I can't
seem to get rid of it for queries (without manually doing it for each
query). Can anyone tell me whats going on??? TIA


When viewing your relationships, right-click and choose Show All. I would
expect the relationship to appear even if you have to move tables or search
a bit to see it. In other words the rlationship *is* there it's just not
currently being shown. What you deleted was an additional realtionship you
set up.
<that's the theory anyway>
Nov 13 '05 #2
I forgot to mention that I DID do a show all and in fact deleted all
relationships just to make sure. But no matter what, that relationship
always shows up when I bring both tables into one query.

Nov 13 '05 #3
"francophon e77" <fr***********@ hotmail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I forgot to mention that I DID do a show all and in fact deleted all
relationships just to make sure. But no matter what, that relationship
always shows up when I bring both tables into one query.

If the fields share the same name
and the same datatype
and one of the fields is a primary key
and Tools>Options>T ables/Queries>Enable Autojoin is selected
Then the join will appear - so turn it off if you don't want this feature.

If you suspect something is not as it should be try creating a new database
and importing all the tables (but make sure under the options section that
you choose not to import the relationships). Then you can re-create the
relationships from scratch.
Nov 13 '05 #4

"francophon e77" <fr***********@ hotmail.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
I deleted a relationship in the relationship view, but when I create a
query that includes those two tables, the relationship reappears. When
I go back to the relationship view there is NO relationship but I can't
seem to get rid of it for queries (without manually doing it for each
query). Can anyone tell me whats going on??? TIA


Hi

Tools > Options, on Table/Queries tab, Query Design - tick box Enable Auto
Join is probably ticked.

- Joe
Nov 13 '05 #5
"francophon e77" <fr***********@ hotmail.com> schreef in bericht news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I forgot to mention that I DID do a show all and in fact deleted all
relationships just to make sure. But no matter what, that relationship
always shows up when I bring both tables into one query.


Perhaps Access is trying to be smart ...
-- Is this 'relationship' an innerjoin between two fields with the same name?
-- Both fields are also primary keys?

Arno R
Nov 13 '05 #6
Thanks, AutoJoin WAS enabled.

Nov 13 '05 #7
francophone77 wrote:
Thanks, AutoJoin WAS enabled.


Now restore the backup that had all the relationships in before you sod
up the whole database.
Nov 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
16784
by: Aidan Whitehall | last post by:
Have gone through BOL and Google, but can't find the answer... please help with a simple Q. I'm trying to create a simple cascade delete trigger in SQL Server 7 where deleting "parent" records in table X delete corresponding child records in table Y. Table X ========= X_ID SOME_VAL
1
5716
by: Swaq | last post by:
Or, at least, I find it complicated :-) Hopefully it is not that hard but here goes: I have two tables: Persons and Relations Persons contain personal data such as person_ID, name, adresse, etc. and a special-status-code (a person with this code set = 1 is a VIP)
3
3161
by: cfxchange | last post by:
I am looking into work-arounds for what seems to be a flaw, or "undocumented feature" of SQL Server replication and Instead of Delete triggers not playing together. It seems that if you want to use replication then you cannot use Instead Of triggers as it prohibits the replication triggers from firing. My delima is that I need to cascade delete, but first have the record and all child records inserted into associated delete tables...
2
12410
by: Steve | last post by:
How do I delete a relationship between tables in SQL Server 7.0? I previously had a relationship between two tables, but I renamed the field and table of one of the tables and the old relationship still points to the old field name and table. How do I remove the defunct relationship? It doesn't show in my diagram because the old table no longer exists (well it does but it's been renamed).
6
3109
by: Paul T. Rong | last post by:
Dear all, Here is my problem: There is a table "products" in my access database, since some of the products are out of date and stopped manufacture, I would like to delete those PRODUCTS from the table, but I was not allowed to do that, because "there are records related with those PRODUCTS in other tables (e.g. in table "ORDER_DETAIL").
1
1894
by: khan | last post by:
I have customer table and it has one to many relation with sales table and sales table has one to many relation with saledetail table. Is it possible if I delete a customer from customer table then all records in sales and seledetail table are deleted too. Custome: CustID, custname, Custadd Sales saleID, CustID, date SaleDetail:
6
2107
by: paulwilliamsonremove | last post by:
Hi, I have two queries: "qryHistoryPersonIDs" that just contains the "personID" numeric field, and "qryDonations" that just contains the "personID" field, and a date field ("dDonationDate"). I want to delete every record in the qryHistoryPersonIDs recordset that are not found in the qryDonations recordset for a particular date range.
3
2552
by: Jeff | last post by:
In a subform I have a simple SQL statement that links an order details table to a product table. The form is used to enter order details. Most fields are obviously from the details table, with only a UOM field from the product table. This has worked fine for years, I thought. The problem I seem to have is that if the user makes a mistake in putting a product in the order they then naturally want to delete the line out of the order....
3
2429
by: brucedodds | last post by:
My application has a form based on a parent table with a subform based on a child table. The relationship is Cascade Delete. The first record displayed when the form opens has five child records. The form allows this record to be deleted without a prompt, though SetWarnings is set to True. When you try to delete other records, you do get a prompt. The problem isn't the relationship or the tables, because a test form/ subform using the...
31
6690
by: matthewslyman | last post by:
I have an unusual design and some very unusual issues with my code... I have forced Access to cooperate on everything except one issue - record deletion. My form design involves a recursively nested form. In other words, the form, m_settings_menueditor_recursive has a single subform; m_settings_menueditor_recursive (both are viewed as datasheets - so the form is its own subdatasheet.) The Form_Open event modifies the form's recordset so...
0
9708
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
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
10340
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
9161
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
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.