A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Relationship not showing up in relationship view



 
 
Thread Tools Display Modes
  #1  
Old August 9th, 2004, 09:45 PM
Tom
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

Hi,

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The link
is not showing up in "Relationhips" view, and when I try to add a record it
says I can't because the record doesn't exist in the related table. It says
to break the link before I can change, but I can't because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.
  #2  
Old August 9th, 2004, 10:32 PM
tina
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

try opening the Relationships window and clicking the Show All Relationships
button on the toolbar.

hth


"Tom" wrote in message
...
Hi,

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The

link
is not showing up in "Relationhips" view, and when I try to add a record

it
says I can't because the record doesn't exist in the related table. It

says
to break the link before I can change, but I can't because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.



  #3  
Old August 9th, 2004, 10:39 PM
Tom
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

Hi Tina,

I have, but it doesn't show any relationships for the table in
question. I even created a new relationship for the same table, and then
saved it. When I went back to relationships, it wasn't there. Any ideas?

Thanks,

Tom

"tina" wrote:

try opening the Relationships window and clicking the Show All Relationships
button on the toolbar.

hth


"Tom" wrote in message
...
Hi,

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The

link
is not showing up in "Relationhips" view, and when I try to add a record

it
says I can't because the record doesn't exist in the related table. It

says
to break the link before I can change, but I can't because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.




  #4  
Old August 10th, 2004, 04:19 AM
tina
external usenet poster
 
Posts: n/a
Default NOT RESOLVED! MVPs Help? Relationship not showing up in relationship view

hmm, sorry, no. hopefully the "not resolved" in the subject line will catch
others' attention and get you more help. if you don't get another response
in a day or so, suggest you post the question again to a new thread.
also, suggest you don't respond to this post, as others may think it's being
handled, and not take the time to look at it. good luck!


"Tom" wrote in message
...
Hi Tina,

I have, but it doesn't show any relationships for the table in
question. I even created a new relationship for the same table, and then
saved it. When I went back to relationships, it wasn't there. Any ideas?

Thanks,

Tom

"tina" wrote:

try opening the Relationships window and clicking the Show All

Relationships
button on the toolbar.

hth


"Tom" wrote in message
...
Hi,

I am using Access 2000, and had a relationship setup to link 2

tables
together. I later decided to change the design and delete the link.

The
link
is not showing up in "Relationhips" view, and when I try to add a

record
it
says I can't because the record doesn't exist in the related table. It

says
to break the link before I can change, but I can't because it doesn't

show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.






  #5  
Old August 10th, 2004, 04:41 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default NOT RESOLVED! MVPs Help? Relationship not showing up in relationship view

Try deleting the table itself from the Relationships window (it isn't
actually deleted from the database, just from the display), and then click
Show All Tables.

--

Ken Snell
MS ACCESS MVP

"tina" wrote in message
...
hmm, sorry, no. hopefully the "not resolved" in the subject line will

catch
others' attention and get you more help. if you don't get another response
in a day or so, suggest you post the question again to a new thread.
also, suggest you don't respond to this post, as others may think it's

being
handled, and not take the time to look at it. good luck!


"Tom" wrote in message
...
Hi Tina,

I have, but it doesn't show any relationships for the table in
question. I even created a new relationship for the same table, and then
saved it. When I went back to relationships, it wasn't there. Any ideas?

Thanks,

Tom

"tina" wrote:

try opening the Relationships window and clicking the Show All

Relationships
button on the toolbar.

hth


"Tom" wrote in message
...
Hi,

I am using Access 2000, and had a relationship setup to link 2

tables
together. I later decided to change the design and delete the link.

The
link
is not showing up in "Relationhips" view, and when I try to add a

record
it
says I can't because the record doesn't exist in the related table.

It
says
to break the link before I can change, but I can't because it

doesn't
show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.







  #6  
Old August 10th, 2004, 04:53 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

Tom, it sounds like Access is enforing a relation that you cannot see, and
it does not even show up when you "Show All".

You can programmatically list the relations using the code below, and you
can also use the Delete method of the Relations collection to get rid of a
hidden relation once you know its name. If you are comfortable with code,
that might be the way to go.

Function ShowRel()
'Purpose: List the relations to the Immediate Window.
Dim db As DAO.Database
Dim rel As DAO.Relation

Set db = DBEngine(0)(0)
For Each rel In db.Relations
Debug.Print rel.Name, rel.Table, rel.ForeignTable
Next

Set rel = Nothing
Set db = Nothing
End Function

If you are still stuck, the code in this link deletes ALL the relationship
in your database. After compacting, you can then rebuild the ones you want:
http://members.iinet.net.au/~allenbrowne/DelRel.html

The most likely cause for the problem is Name Autocorrect. Uncheck the boxes
under Tools | Options | General | Name AutoCorrect, and then compact the
database so the problem does not recur. More information about these
problems:
http://members.iinet.net.au/~allenbrowne/bug-03.html

As a last resort, you can always get Access to rebuild your database by
creating a new one (File | New) and importing everything from the problem
one (File | Get External | Import). In that dialog there is an Options
button, which allows you to NOT import the relations.

--
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.

"Tom" wrote in message
...

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The
link
is not showing up in "Relationhips" view, and when I try to add a record
it
says I can't because the record doesn't exist in the related table. It
says
to break the link before I can change, but I can't because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.



  #7  
Old August 10th, 2004, 08:51 AM
Bob
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

I am having the exact same problem and none of the
solutions seem to work. Suggested code for deleting
relationships shows a compile error. Hard to believe this
problem is happening in an established product like
Access. If anyone finds a solution please let me know.
Have to redefine the DB due to this.
-----Original Message-----
Hi,

I am using Access 2000, and had a relationship setup

to link 2 tables
together. I later decided to change the design and

delete the link. The link
is not showing up in "Relationhips" view, and when I try

to add a record it
says I can't because the record doesn't exist in the

related table. It says
to break the link before I can change, but I can't

because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the

wrong lane.
.

  #8  
Old August 10th, 2004, 12:47 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

If the code will not compile, you probably need to add a reference to the
DAO library.

1. Open the code window.
2. Choose References on the Tools menu.
3. Check the box beside:
Microsoft DAO 3.6 Library.

More information:
http://members.iinet.net.au/~allenbrowne/ser-38.html

I have not personally seen this problem for 7 years, but we always make sure
that Name AutoCorrect is turned off. It would be the primary suspect for
this corruption. More reasons why it should be turned off:
http://members.iinet.net.au/~allenbrowne/bug-03.html

--
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.

"Bob" wrote in message
...
I am having the exact same problem and none of the
solutions seem to work. Suggested code for deleting
relationships shows a compile error. Hard to believe this
problem is happening in an established product like
Access. If anyone finds a solution please let me know.
Have to redefine the DB due to this.
-----Original Message-----
Hi,

I am using Access 2000, and had a relationship setup

to link 2 tables
together. I later decided to change the design and

delete the link. The link
is not showing up in "Relationhips" view, and when I try

to add a record it
says I can't because the record doesn't exist in the

related table. It says
to break the link before I can change, but I can't

because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the

wrong lane.
.



  #9  
Old August 10th, 2004, 03:19 PM
Tom
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

Hi Allen,

How do I run this code? Do I create a .vbs file with it? And
after, how do I delete these relationships once I see them. Is there an
option for that?

Thanks,

Tom

"Allen Browne" wrote:

Tom, it sounds like Access is enforing a relation that you cannot see, and
it does not even show up when you "Show All".

You can programmatically list the relations using the code below, and you
can also use the Delete method of the Relations collection to get rid of a
hidden relation once you know its name. If you are comfortable with code,
that might be the way to go.

Function ShowRel()
'Purpose: List the relations to the Immediate Window.
Dim db As DAO.Database
Dim rel As DAO.Relation

Set db = DBEngine(0)(0)
For Each rel In db.Relations
Debug.Print rel.Name, rel.Table, rel.ForeignTable
Next

Set rel = Nothing
Set db = Nothing
End Function

If you are still stuck, the code in this link deletes ALL the relationship
in your database. After compacting, you can then rebuild the ones you want:
http://members.iinet.net.au/~allenbrowne/DelRel.html

The most likely cause for the problem is Name Autocorrect. Uncheck the boxes
under Tools | Options | General | Name AutoCorrect, and then compact the
database so the problem does not recur. More information about these
problems:
http://members.iinet.net.au/~allenbrowne/bug-03.html

As a last resort, you can always get Access to rebuild your database by
creating a new one (File | New) and importing everything from the problem
one (File | Get External | Import). In that dialog there is an Options
button, which allows you to NOT import the relations.

--
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.

"Tom" wrote in message
...

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The
link
is not showing up in "Relationhips" view, and when I try to add a record
it
says I can't because the record doesn't exist in the related table. It
says
to break the link before I can change, but I can't because it doesn't show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.




  #10  
Old August 10th, 2004, 04:28 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Relationship not showing up in relationship view

To use the code:
1. Select the Modules tab of the Database Window.

2. Click New. Access opens a code window.

3. Paste the function into this code window.

4. If Access 2000 or 2002, choose References from the Tools menu, and check
the box beside:
Microsoft DAO 3.6 Library.

5. Choose Compile from the Debug menu. (This checks Access can make sense of
the code.)

6. Press Ctrl+G to open the Immediate Window. Enter:
? ShowRel()

Once you know the name of the relation you want to delete, you can enter
this directly into the Immediate Window:
dbEngine(0)(0).Relations.Delete "xxxxx"
where "xxxxx" represents the name of the relation you want to get rid of.

--
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.

"Tom" wrote in message
...
Hi Allen,

How do I run this code? Do I create a .vbs file with it? And
after, how do I delete these relationships once I see them. Is there an
option for that?

Thanks,

Tom

"Allen Browne" wrote:

Tom, it sounds like Access is enforing a relation that you cannot see,
and
it does not even show up when you "Show All".

You can programmatically list the relations using the code below, and you
can also use the Delete method of the Relations collection to get rid of
a
hidden relation once you know its name. If you are comfortable with code,
that might be the way to go.

Function ShowRel()
'Purpose: List the relations to the Immediate Window.
Dim db As DAO.Database
Dim rel As DAO.Relation

Set db = DBEngine(0)(0)
For Each rel In db.Relations
Debug.Print rel.Name, rel.Table, rel.ForeignTable
Next

Set rel = Nothing
Set db = Nothing
End Function

If you are still stuck, the code in this link deletes ALL the
relationship
in your database. After compacting, you can then rebuild the ones you
want:
http://members.iinet.net.au/~allenbrowne/DelRel.html

The most likely cause for the problem is Name Autocorrect. Uncheck the
boxes
under Tools | Options | General | Name AutoCorrect, and then compact the
database so the problem does not recur. More information about these
problems:
http://members.iinet.net.au/~allenbrowne/bug-03.html

As a last resort, you can always get Access to rebuild your database by
creating a new one (File | New) and importing everything from the problem
one (File | Get External | Import). In that dialog there is an Options
button, which allows you to NOT import the relations.


"Tom" wrote in message
...

I am using Access 2000, and had a relationship setup to link 2 tables
together. I later decided to change the design and delete the link. The
link
is not showing up in "Relationhips" view, and when I try to add a
record
it
says I can't because the record doesn't exist in the related table. It
says
to break the link before I can change, but I can't because it doesn't
show
up. HELP

Thanks,

Tom
--
When eveythings coming at you at once, you're in the wrong lane.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoForm Created from query not showing on Form view Alcide Using Forms 5 November 30th, 2005 06:05 AM
Monthly view showing wrong month Cory Calendar 2 June 1st, 2004 04:18 PM
sql view charles osborne Using Forms 1 May 29th, 2004 05:42 AM
sql view charles osborne Database Design 1 May 29th, 2004 05:21 AM
Showing Contact in Task View Tim Contacts 4 May 21st, 2004 02:57 AM


All times are GMT +1. The time now is 01:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.