dbTalk Databases Forums  

A relationship already exits. Do you want to edit the existing relationship?

comp.databases.ms-access comp.databases.ms-access


Discuss A relationship already exits. Do you want to edit the existing relationship? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M Skabialka
 
Posts: n/a

Default A relationship already exits. Do you want to edit the existing relationship? - 06-16-2010 , 03:26 PM






In laying out the relationships between tables in Access 2007, I tried to
create two joins between a pair of tables, the AssignmentID and EmployeeID.
I do this kind of multiple join often. However this time I am getting an
error when I try to create the second join:
"A relationship already exits. Do you want to edit the existing
relationship? To create a new relationship, click No."
I can only join either AssignmentID or EmployeeID, not both.
I am defining the relationships in the Front End - none are definied in the
Back End.
What is wrong here? I checked an older database and found as many as four
joins between tables, here I am limited to one.

Reply With Quote
  #2  
Old   
Access Developer
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-16-2010 , 04:05 PM






I can't address the possible version-specific issues, but you get no
beneefit other than a diagram from defining relationships in the front end.
To be enforced by the DB engine, the relationship must be in the database
where the table exists.

Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


"M Skabialka" <mskabialka (AT) NOSPAMdrc (DOT) com> wrote

Quote:
In laying out the relationships between tables in Access 2007, I tried to
create two joins between a pair of tables, the AssignmentID and
EmployeeID. I do this kind of multiple join often. However this time I am
getting an error when I try to create the second join:
"A relationship already exits. Do you want to edit the existing
relationship? To create a new relationship, click No."
I can only join either AssignmentID or EmployeeID, not both.
I am defining the relationships in the Front End - none are definied in
the Back End.
What is wrong here? I checked an older database and found as many as four
joins between tables, here I am limited to one.


Reply With Quote
  #3  
Old   
M Skabialka
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-16-2010 , 04:09 PM



I found the answer right after I posted here - you have to edit both
relationships in the same window - which I have done before but went brain
dead this time. However even though my relationships are defined in the
front end, whenever I use the query designer and add tables, the
relationships I have designed in the front end are there. If it is better
programming practice to do it in the back end, I will do so, but seldom
touch the back end once my tables are designed.
Thanks,
Mich

"Access Developer" <accdevel (AT) gmail (DOT) com> wrote

Quote:
I can't address the possible version-specific issues, but you get no
beneefit other than a diagram from defining relationships in the front end.
To be enforced by the DB engine, the relationship must be in the database
where the table exists.

Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


"M Skabialka" <mskabialka (AT) NOSPAMdrc (DOT) com> wrote in message
news:hvbc1f$3bn$1 (AT) speranza (DOT) aioe.org...
In laying out the relationships between tables in Access 2007, I tried to
create two joins between a pair of tables, the AssignmentID and
EmployeeID. I do this kind of multiple join often. However this time I
am getting an error when I try to create the second join:
"A relationship already exits. Do you want to edit the existing
relationship? To create a new relationship, click No."
I can only join either AssignmentID or EmployeeID, not both.
I am defining the relationships in the Front End - none are definied in
the Back End.
What is wrong here? I checked an older database and found as many as
four joins between tables, here I am limited to one.




Reply With Quote
  #4  
Old   
Tony Toews
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-16-2010 , 05:38 PM



On Wed, 16 Jun 2010 16:09:05 -0500, "M Skabialka"
<mskabialka (AT) NOSPAMdrc (DOT) com> wrote:

Quote:
I found the answer right after I posted here - you have to edit both
relationships in the same window - which I have done before but went brain
dead this time. However even though my relationships are defined in the
front end, whenever I use the query designer and add tables, the
relationships I have designed in the front end are there. If it is better
programming practice to do it in the back end, I will do so, but seldom
touch the back end once my tables are designed.
Yes, it's much, much better practice to define relationships in the
BE. I never, ever touch them in the FE.

Tony

Reply With Quote
  #5  
Old   
Access Developer
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-16-2010 , 10:40 PM



The relationships you define in the front end are "cosmetic only" if the
tables are linked from a back end database. That is, you may get join lines
automatically set when you create a query, but you can't enforce referential
integrity, nor cascade update, nor cascade delete.

--
Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


"M Skabialka" <mskabialka (AT) NOSPAMdrc (DOT) com> wrote

Quote:
I found the answer right after I posted here - you have to edit both
relationships in the same window - which I have done before but went brain
dead this time. However even though my relationships are defined in the
front end, whenever I use the query designer and add tables, the
relationships I have designed in the front end are there. If it is better
programming practice to do it in the back end, I will do so, but seldom
touch the back end once my tables are designed.
Thanks,
Mich

"Access Developer" <accdevel (AT) gmail (DOT) com> wrote in message
news:87ssj9FsjkU1 (AT) mid (DOT) individual.net...
I can't address the possible version-specific issues, but you get no
beneefit other than a diagram from defining relationships in the front
end. To be enforced by the DB engine, the relationship must be in the
database where the table exists.

Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by
Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


"M Skabialka" <mskabialka (AT) NOSPAMdrc (DOT) com> wrote in message
news:hvbc1f$3bn$1 (AT) speranza (DOT) aioe.org...
In laying out the relationships between tables in Access 2007, I tried
to create two joins between a pair of tables, the AssignmentID and
EmployeeID. I do this kind of multiple join often. However this time I
am getting an error when I try to create the second join:
"A relationship already exits. Do you want to edit the existing
relationship? To create a new relationship, click No."
I can only join either AssignmentID or EmployeeID, not both.
I am defining the relationships in the Front End - none are definied in
the Back End.
What is wrong here? I checked an older database and found as many as
four joins between tables, here I am limited to one.





Reply With Quote
  #6  
Old   
David W. Fenton
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-17-2010 , 10:40 PM



"Access Developer" <accdevel (AT) gmail (DOT) com> wrote in
news:87tjpmFghlU1 (AT) mid (DOT) individual.net:

Quote:
The relationships you define in the front end are "cosmetic only"
if the tables are linked from a back end database.
That is, they aren't really relationships.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

Reply With Quote
  #7  
Old   
M Skabialka
 
Posts: n/a

Default Re: A relationship already exits. Do you want to edit the existing relationship? - 06-22-2010 , 09:24 AM



I have moved the relationships to the back end - thanks for the advice.
Mich

"Access Developer" <accdevel (AT) gmail (DOT) com> wrote

Quote:
The relationships you define in the front end are "cosmetic only" if the
tables are linked from a back end database. That is, you may get join
lines automatically set when you create a query, but you can't enforce
referential integrity, nor cascade update, nor cascade delete.

--
Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.