473,598 Members | 3,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Phantom Relationships

Max
Hi. I really hope someone can help me. Going slowly insane with this
problem.

I have a two Access 2000 databases. One is the backend containing
tables and some admin queries. The other is the front end with forms /
queries and links to the tables in the back end.

From the Relationships window I selected File / Print Relationships.
The resulting report shows relationships that are not displayed in the
relationships window. Some of these relationships are plain wrong –
linking two tables on fields that are not actually related. I have…
clicked the "show all", "show direct" buttons
removed and added the tables in the relationship window a dozen times
created the "wrong" relationships again and deleted them
deleted all relationships
compacted and repaired a dozen times.

And still, these wrong relationships show up in the report, and no
relationships show in the relationship window.

What seems to be related is that I found I had some strange indexes in
several tables – the index name being the same as a field name, but
composed of multiple fields. I don't know where these came from but
they were the same fields as are "wrongly" linked. So, I have now
removed all indexing from all my tables.

But checking in the MSysRelationshi ps table there are still 25 records
of defined relationships, none of which I can see in the relationships
window and some of which are duplicated.

This backend does contain some queries for updating and the like.
However, non of them involve creating a link between the tables in
question.

Has anyone got any suggestions as to what could be causing this? I
can't find anything on the KB and a couple of similar posts here
didn't come up with any answers.

Any suggestions would be much appreciated.

Thanks,
Max
Nov 13 '05 #1
2 4125
Hi Max

Whenever you create a relationship with enforced Referential Integrity,
Access creates a hidden index to manage it. The relationship will be named
after the tables/fields if the name is available; otherwise it will use a
GUID.

Additionally, Access automatically creates indexes on any fields that have a
name ending with ID, Code, Num, etc. unless you remove the entries under:
Tools | Options | Tables/Queries | AutoIndex

To add to the confusion, the Name AutoCorrect feature tries to keep track of
changes to the table names or field names. This feature creates *many*
problems, with well over a dozen known bugs listed in:
Failures caused by Name Auto-Correct
at:
http://members.iinet.net.au/~allenbrowne/bug-03.html

There may also be bugs in the relationship report, but I have not
experienced those.

Try this process to rebuild your database:

1. Delete all relationships
The code in this link will delete all the relations in your database, even
the hidden ones:
http://members.iinet.net.au/~allenbrowne/DelRel.html
Then compact the database.

2. Create a new (blank) database.

3. Uncheck the Name AutoCorrect boxes under:
Tools | Options | General.

4. Import everything from the damaged database:
File | Get External | Import

5. Create the relationships from scratch.

Finally, Stephen Lebans has a utility that reads the details of the
relationships as Access has them stored, and lets you save and restore
multiple relationship window layouts. His code may give you clues as to how
Access is storing this data if you want to investigate the problem further.
See:
http://www.lebans.com/saverelationshipview.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Max" <mf*******@hotm ail.com> wrote in message
news:24******** *************** *@posting.googl e.com...
Hi. I really hope someone can help me. Going slowly insane with this
problem.

I have a two Access 2000 databases. One is the backend containing
tables and some admin queries. The other is the front end with forms /
queries and links to the tables in the back end.

From the Relationships window I selected File / Print Relationships.
The resulting report shows relationships that are not displayed in the
relationships window. Some of these relationships are plain wrong -
linking two tables on fields that are not actually related. I have.
clicked the "show all", "show direct" buttons
removed and added the tables in the relationship window a dozen times
created the "wrong" relationships again and deleted them
deleted all relationships
compacted and repaired a dozen times.

And still, these wrong relationships show up in the report, and no
relationships show in the relationship window.

What seems to be related is that I found I had some strange indexes in
several tables - the index name being the same as a field name, but
composed of multiple fields. I don't know where these came from but
they were the same fields as are "wrongly" linked. So, I have now
removed all indexing from all my tables.

But checking in the MSysRelationshi ps table there are still 25 records
of defined relationships, none of which I can see in the relationships
window and some of which are duplicated.

This backend does contain some queries for updating and the like.
However, non of them involve creating a link between the tables in
question.

Has anyone got any suggestions as to what could be causing this? I
can't find anything on the KB and a couple of similar posts here
didn't come up with any answers.

Any suggestions would be much appreciated.

Thanks,
Max

Nov 13 '05 #2
Max
Fantastic! Thank you Allen

That seems to have done the trick.

I think I had incorrectly created a relationship in the past - causing
Access to create these hidden indexes. I realised my mistake and
deleted the relationship but the indexes remained and somehow casued
the relationships to persist.

Story of my life, appropriately enough.

Anyway, I think it's ok now.

Thanks again for your help.

Max

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message news:<40******* *************** @per-qv1-newsreader-01.iinet.net.au >...
Hi Max

Whenever you create a relationship with enforced Referential Integrity,
Access creates a hidden index to manage it. The relationship will be named
after the tables/fields if the name is available; otherwise it will use a
GUID.

Additionally, Access automatically creates indexes on any fields that have a
name ending with ID, Code, Num, etc. unless you remove the entries under:
Tools | Options | Tables/Queries | AutoIndex

To add to the confusion, the Name AutoCorrect feature tries to keep track of
changes to the table names or field names. This feature creates *many*
problems, with well over a dozen known bugs listed in:
Failures caused by Name Auto-Correct
at:
http://members.iinet.net.au/~allenbrowne/bug-03.html

There may also be bugs in the relationship report, but I have not
experienced those.

Try this process to rebuild your database:

1. Delete all relationships
The code in this link will delete all the relations in your database, even
the hidden ones:
http://members.iinet.net.au/~allenbrowne/DelRel.html
Then compact the database.

2. Create a new (blank) database.

3. Uncheck the Name AutoCorrect boxes under:
Tools | Options | General.

4. Import everything from the damaged database:
File | Get External | Import

5. Create the relationships from scratch.

Finally, Stephen Lebans has a utility that reads the details of the
relationships as Access has them stored, and lets you save and restore
multiple relationship window layouts. His code may give you clues as to how
Access is storing this data if you want to investigate the problem further.
See:
http://www.lebans.com/saverelationshipview.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Max" <mf*******@hotm ail.com> wrote in message
news:24******** *************** *@posting.googl e.com...
Hi. I really hope someone can help me. Going slowly insane with this
problem.

I have a two Access 2000 databases. One is the backend containing
tables and some admin queries. The other is the front end with forms /
queries and links to the tables in the back end.

From the Relationships window I selected File / Print Relationships.
The resulting report shows relationships that are not displayed in the
relationships window. Some of these relationships are plain wrong -
linking two tables on fields that are not actually related. I have.
clicked the "show all", "show direct" buttons
removed and added the tables in the relationship window a dozen times
created the "wrong" relationships again and deleted them
deleted all relationships
compacted and repaired a dozen times.

And still, these wrong relationships show up in the report, and no
relationships show in the relationship window.

What seems to be related is that I found I had some strange indexes in
several tables - the index name being the same as a field name, but
composed of multiple fields. I don't know where these came from but
they were the same fields as are "wrongly" linked. So, I have now
removed all indexing from all my tables.

But checking in the MSysRelationshi ps table there are still 25 records
of defined relationships, none of which I can see in the relationships
window and some of which are duplicated.

This backend does contain some queries for updating and the like.
However, non of them involve creating a link between the tables in
question.

Has anyone got any suggestions as to what could be causing this? I
can't find anything on the KB and a couple of similar posts here
didn't come up with any answers.

Any suggestions would be much appreciated.

Thanks,
Max

Nov 13 '05 #3

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

Similar topics

5
2611
by: Andrew | last post by:
Hi All, Have come across something weird and am after some help. Say i run this query where rec_id is a column of table arlhrl, select * from arlhrl where rec_id >= 14260 This returns to me 2 records with rec_id's of 14260 and 14261
0
1481
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with: 1.) I'm trying to create a many to many relationship, and I get the following Error when I try to enforce referential integrity.
7
2120
by: davegb | last post by:
I'm totally new to relational database design. My boss has asked me to create a database of information on the employees in our group. Seemed to me like a simple application to learn the ropes. A couple of things are confusing me. The first is "Relationships" and "Joins". Are they different names for the same thing? If not, what is the difference? I have a copy of the Access 2000 Bible, and it says, "When you create a relationship between...
3
2350
by: memememe | last post by:
I see weak reference on the .net api, but I do not see soft or phantom, are they supported on .net?
0
1237
by: Rod Billett | last post by:
The included html contains 3 divs. One primary Div, with 2 nested divs. the second nested DIV contains an empty table. Problem 1: Phantom Space. When viewed within the browser, the div 'action panel' is spaced a picel or two lower than the div 'ItemsPanel' even though both are the same height. Oddly enough, if you remove the table (ID Removemetowork) this phantom space dissappears and everything is fine with the world Problem 2:...
9
1263
by: Dave | last post by:
Apologies if this has come up before, but I can't find it if it has. I am fairly new to .Net and am having problems with ghosts in the datagrid. Basically I have a find screen that accepts search criteria, then interrogates a database to find all matching records. These are put into a dataset, which has a dataview that is used as the datasource of my datagrid, which is read only. The idea is that the user selects which record they...
9
1589
by: TB | last post by:
Hi all: I realize that this is strictly speaking not an ASP.NET question, but since most of you people out there SQL gurus as well, I hope you will bear with me on this occasion: I would like to know how to create a "phantom" record when running a SELECT query. For example:
45
3380
by: salad | last post by:
I'm curious about your opinion on setting relationships. When I designed my first app in Access I'd go to Tools/Relationships and set the relationships. Over time I'd go into the window and see relationship spaghetti....tables/queries all overthe place with lots of relationship lines between here and there. After that first app I didn't do relationships. If I had a query, I defined the relationship. Many of the times when I create a...
13
2057
by: ARC | last post by:
Hello all, Prior to going live with my app, I have questions on relationships theory. My prior app was done in Access 97, and I did NOT use relationships at all. I have 65 tables in my back-end database, and with Access 97, if you added relationships, it would add multiple copies of the same relationships over and over, so I decided not to use any relationships at all. Additionally, when I needed to add or remove fields via code, it...
0
7991
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
8398
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...
1
8050
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6719
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
3898
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
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
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 we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1250
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.