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  

Re-establishing a broken relationship



 
 
Thread Tools Display Modes
  #1  
Old November 29th, 2004, 07:47 AM
David McKnight
external usenet poster
 
Posts: n/a
Default Re-establishing a broken relationship

I've had to break a multi-relationship (three - one-to-one) between two
tables (say "A" & "B") in order to edit the properties one of them. The
problem is each time I try to build the relationship back in the relationship
window I get a message that relationship already exist "Do you want to create
another". If I choose no - then no relationship shows up in the relationship
window between these two tables. If I choose yes then I get a duplicate table
(three Table "B"'s) for table "A" one of the tables for each one-to-one
relationship I try to add. Before I had broken the relationships I had three
one-to-one connections between the two tables.

I'm not sure if the latter is actually a problem but it does seem to take my
queries a very significant time longer to run with the new relationships.


David McKnight
  #2  
Old November 29th, 2004, 05:56 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default

In the Relationship window, you can only click and drag ONE link. However,
in the Edit Relationships window (which pops up when you click and drag your
first set of fields) you can add your additional fields. After you add them
there, they will appear in the diagram window.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"David McKnight" wrote in message
...
I've had to break a multi-relationship (three - one-to-one) between two
tables (say "A" & "B") in order to edit the properties one of them. The
problem is each time I try to build the relationship back in the

relationship
window I get a message that relationship already exist "Do you want to

create
another". If I choose no - then no relationship shows up in the

relationship
window between these two tables. If I choose yes then I get a duplicate

table
(three Table "B"'s) for table "A" one of the tables for each one-to-one
relationship I try to add. Before I had broken the relationships I had

three
one-to-one connections between the two tables.

I'm not sure if the latter is actually a problem but it does seem to take

my
queries a very significant time longer to run with the new relationships.


David McKnight



  #3  
Old December 1st, 2004, 10:49 AM
David McKnight
external usenet poster
 
Posts: n/a
Default


In the two query senerios below I get two very different query results. The
difference between them is that in second I have added the statement.

"ON ([Filter parameters].Conference = [Season Division Conference
School].Conference)"

I would like to have code that runs the query one way or the other depending
on what I choose.


SELECT [Scores-Win Loss].ID, [Scores-Win Loss].Date, [Scores-Win
Loss].Season, [Scores-Win Loss].Home, [Scores-Win Loss].[Home Score],
[Scores-Win Loss]![Home Score]-(Coefficients![Home Field Adv Margin]/2) AS
[Home Adjusted Score], ([Scores-Win Loss]![Win-Loss])-(Coefficients![Home
Field AdvWin-Loss])/2 AS [Home Adjusted Score Win-Loss], [Scores-Win
Loss].Nuetral, [Scores-Win Loss].[Future Game], [Season Division Conference
School]!Division AS [Home Division], [Season Division Conference
School]!Conference AS [Home Conference]
FROM Coefficients, [Filter parameters] INNER JOIN ([Scores-Win Loss] INNER
JOIN [Season Division Conference School] ON ([Scores-Win Loss].Season =
[Season Division Conference School].Season) AND ([Scores-Win Loss].Home =
[Season Division Conference School].School)) ON ([Filter parameters].Division
= [Season Division Conference School].Division) AND ([Filter
parameters].Season = [Season Division Conference School].Season)
WHERE ((([Scores-Win Loss].[Future Game])=False));


SELECT [Scores-Win Loss].ID, [Scores-Win Loss].Date, [Scores-Win
Loss].Season, [Scores-Win Loss].Home, [Scores-Win Loss].[Home Score],
[Scores-Win Loss]![Home Score]-(Coefficients![Home Field Adv Margin]/2) AS
[Home Adjusted Score], ([Scores-Win Loss]![Win-Loss])-(Coefficients![Home
Field AdvWin-Loss])/2 AS [Home Adjusted Score Win-Loss], [Scores-Win
Loss].Nuetral, [Scores-Win Loss].[Future Game], [Season Division Conference
School]!Division AS [Home Division], [Season Division Conference
School]!Conference AS [Home Conference]
FROM Coefficients, [Filter parameters] INNER JOIN ([Scores-Win Loss] INNER
JOIN [Season Division Conference School] ON ([Scores-Win Loss].Season =
[Season Division Conference School].Season) AND ([Scores-Win Loss].Home =
[Season Division Conference School].School)) ON ([Filter
parameters].Conference = [Season Division Conference School].Conference) AND
([Filter parameters].Division = [Season Division Conference School].Division)
AND ([Filter parameters].Season = [Season Division Conference School].Season)
WHERE ((([Scores-Win Loss].[Future Game])=False));


"Roger Carlson" wrote:

In the Relationship window, you can only click and drag ONE link. However,
in the Edit Relationships window (which pops up when you click and drag your
first set of fields) you can add your additional fields. After you add them
there, they will appear in the diagram window.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"David McKnight" wrote in message
...
I've had to break a multi-relationship (three - one-to-one) between two
tables (say "A" & "B") in order to edit the properties one of them. The
problem is each time I try to build the relationship back in the

relationship
window I get a message that relationship already exist "Do you want to

create
another". If I choose no - then no relationship shows up in the

relationship
window between these two tables. If I choose yes then I get a duplicate

table
(three Table "B"'s) for table "A" one of the tables for each one-to-one
relationship I try to add. Before I had broken the relationships I had

three
one-to-one connections between the two tables.

I'm not sure if the latter is actually a problem but it does seem to take

my
queries a very significant time longer to run with the new relationships.


David McKnight




 




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
Deleting a foreign key relationship in SQL Stevio Running & Setting Up Queries 2 December 22nd, 2004 02:51 PM
PK not required to create FK 'relationship' Jamie Collins New Users 3 October 28th, 2004 09:13 AM
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. HDW Database Design 3 October 16th, 2004 03:42 AM
Setting dual relationship with tool connector Carlos Visio 0 May 20th, 2004 12:51 AM


All times are GMT +1. The time now is 01:09 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.