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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Relationships getting redefined?



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2004, 06:39 PM
raylitalo
external usenet poster
 
Posts: n/a
Default Relationships getting redefined?

I am trying to model our church records, which in my model result in multiple
many-to-many relationships. For example, Many Husbands can have Many Wives
(well, not at one time, but...) Many People may Witness many Marriages and
so on. My "tblPeople" table has an autonumber primary key field
("autPersonID"), My "joinMarriage" table has an autonumber primary key
"autMarriageID" and two long fields ("lngHusbandID" and "lngWifeID") which
reference the "autPersonID" field in the "tblPeople" table. This theme seems
to occur repeatedly in my current design. In Access 2003, using the
Graphical relationship I can set up this model by dragging and dropping in
the typical way, resulting in tblPeople, tblPeople_1, ..., tblPeople_4,
because I have placed the tblPeople table in the ERD four times to model
many-to-many relationships I am dealing with.

That seems to work ok, but when I save and close save the layout of my
relationships, and then reopen them, the relationships are redefined in ways
that invalidate my model (for example, insisting that a Witness is also the
Person Getting Married.)

I'm thinking of taking the leap to the SQL Server Personal Edition--any
suggestions or advice anyone?

Thank you very much!!

Ross Ylitalo
  #2  
Old December 14th, 2004, 01:35 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

If Access is getting confused between the different instances of your table
in the Relationships window, the culprit may be Name AutoCorrect. The best
solution might be to delete the relationships that are giving a problem,
and get Access to rebuild the database for you.

1. In the Relationships window, right-click the line representing the
problem relation, and choose Delete. Repeat for other relations as needed.
(Not that this is not the same as deleting the table from the diagram, which
does not remove the relation.)

2. Compact the database.

3. Create a new database.

4. Turn off the Name AutoCorrect check boxes under:
Tools | Options | General.

5. Import everything:
File | Get External | Import.

6. Recreate the relations you deleted at step 1.


For more info on the Name AutoCorrect problems, see:
http://members.iinet.net.au/~allenbrowne/bug-03.html

For a sample database (A2000 or later, 40kb zipped) illustrating how to
organize people into groupings (such as households, companies, choirs) and
be able to choose the individual or the grouping in your mailings/receipts
etc, see:
http://members.iinet.net.au/~allenbrowne/human.zip

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

"raylitalo" wrote in message
...
I am trying to model our church records, which in my model result in
multiple
many-to-many relationships. For example, Many Husbands can have Many
Wives
(well, not at one time, but...) Many People may Witness many Marriages
and
so on. My "tblPeople" table has an autonumber primary key field
("autPersonID"), My "joinMarriage" table has an autonumber primary key
"autMarriageID" and two long fields ("lngHusbandID" and "lngWifeID") which
reference the "autPersonID" field in the "tblPeople" table. This theme
seems
to occur repeatedly in my current design. In Access 2003, using the
Graphical relationship I can set up this model by dragging and dropping in
the typical way, resulting in tblPeople, tblPeople_1, ..., tblPeople_4,
because I have placed the tblPeople table in the ERD four times to model
many-to-many relationships I am dealing with.

That seems to work ok, but when I save and close save the layout of my
relationships, and then reopen them, the relationships are redefined in
ways
that invalidate my model (for example, insisting that a Witness is also
the
Person Getting Married.)

I'm thinking of taking the leap to the SQL Server Personal Edition--any
suggestions or advice anyone?

Thank you very much!!

Ross Ylitalo



  #3  
Old December 15th, 2004, 02:55 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Finally got the web page written to go with that sample database:
http://members.iinet.net.au/~allenbrowne/AppHuman.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.

"Allen Browne" wrote in message
...
If Access is getting confused between the different instances of your
table in the Relationships window, the culprit may be Name AutoCorrect.
The best solution might be to delete the relationships that are giving a
problem, and get Access to rebuild the database for you.

1. In the Relationships window, right-click the line representing the
problem relation, and choose Delete. Repeat for other relations as needed.
(Not that this is not the same as deleting the table from the diagram,
which does not remove the relation.)

2. Compact the database.

3. Create a new database.

4. Turn off the Name AutoCorrect check boxes under:
Tools | Options | General.

5. Import everything:
File | Get External | Import.

6. Recreate the relations you deleted at step 1.


For more info on the Name AutoCorrect problems, see:
http://members.iinet.net.au/~allenbrowne/bug-03.html

For a sample database (A2000 or later, 40kb zipped) illustrating how to
organize people into groupings (such as households, companies, choirs) and
be able to choose the individual or the grouping in your mailings/receipts
etc, see:
http://members.iinet.net.au/~allenbrowne/human.zip


"raylitalo" wrote in message
...
I am trying to model our church records, which in my model result in
multiple
many-to-many relationships. For example, Many Husbands can have Many
Wives
(well, not at one time, but...) Many People may Witness many Marriages
and
so on. My "tblPeople" table has an autonumber primary key field
("autPersonID"), My "joinMarriage" table has an autonumber primary key
"autMarriageID" and two long fields ("lngHusbandID" and "lngWifeID")
which
reference the "autPersonID" field in the "tblPeople" table. This theme
seems
to occur repeatedly in my current design. In Access 2003, using the
Graphical relationship I can set up this model by dragging and dropping
in
the typical way, resulting in tblPeople, tblPeople_1, ..., tblPeople_4,
because I have placed the tblPeople table in the ERD four times to model
many-to-many relationships I am dealing with.

That seems to work ok, but when I save and close save the layout of my
relationships, and then reopen them, the relationships are redefined in
ways
that invalidate my model (for example, insisting that a Witness is also
the
Person Getting Married.)

I'm thinking of taking the leap to the SQL Server Personal Edition--any
suggestions or advice anyone?

Thank you very much!!

Ross Ylitalo



  #4  
Old December 15th, 2004, 08:31 PM
raylitalo
external usenet poster
 
Posts: n/a
Default

Thank you for your reply Allen! While I am looking into the possibility that
"Autocorrect" might be causing problems, I suspect it may not be the culprit
in this case as I haven't used the Autocorrect feature in this construction
of my database--that is, I haven't asked Access to cascade corrections
through to other objects. I am reading the links you gave me to see if there
is something I'm not understanding on this issue.

However, I am very glad that you took the time to share the link to the
"Human" sample database, as it seems to present some ideas I hadn't
considered, which seem to hold promise of simplifying my project.

Again, Thank You Very Much!

Ross

"Allen Browne" wrote:

Finally got the web page written to go with that sample database:
http://members.iinet.net.au/~allenbrowne/AppHuman.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.

"Allen Browne" wrote in message
...
If Access is getting confused between the different instances of your
table in the Relationships window, the culprit may be Name AutoCorrect.
The best solution might be to delete the relationships that are giving a
problem, and get Access to rebuild the database for you.

1. In the Relationships window, right-click the line representing the
problem relation, and choose Delete. Repeat for other relations as needed.
(Not that this is not the same as deleting the table from the diagram,
which does not remove the relation.)

2. Compact the database.

3. Create a new database.

4. Turn off the Name AutoCorrect check boxes under:
Tools | Options | General.

5. Import everything:
File | Get External | Import.

6. Recreate the relations you deleted at step 1.


For more info on the Name AutoCorrect problems, see:
http://members.iinet.net.au/~allenbrowne/bug-03.html

For a sample database (A2000 or later, 40kb zipped) illustrating how to
organize people into groupings (such as households, companies, choirs) and
be able to choose the individual or the grouping in your mailings/receipts
etc, see:
http://members.iinet.net.au/~allenbrowne/human.zip


"raylitalo" wrote in message
...
I am trying to model our church records, which in my model result in
multiple
many-to-many relationships. For example, Many Husbands can have Many
Wives
(well, not at one time, but...) Many People may Witness many Marriages
and
so on. My "tblPeople" table has an autonumber primary key field
("autPersonID"), My "joinMarriage" table has an autonumber primary key
"autMarriageID" and two long fields ("lngHusbandID" and "lngWifeID")
which
reference the "autPersonID" field in the "tblPeople" table. This theme
seems
to occur repeatedly in my current design. In Access 2003, using the
Graphical relationship I can set up this model by dragging and dropping
in
the typical way, resulting in tblPeople, tblPeople_1, ..., tblPeople_4,
because I have placed the tblPeople table in the ERD four times to model
many-to-many relationships I am dealing with.

That seems to work ok, but when I save and close save the layout of my
relationships, and then reopen them, the relationships are redefined in
ways
that invalidate my model (for example, insisting that a Witness is also
the
Person Getting Married.)

I'm thinking of taking the leap to the SQL Server Personal Edition--any
suggestions or advice anyone?

Thank you very much!!

Ross Ylitalo




 




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
Saving Relationships Leon Database Design 2 November 2nd, 2004 10:41 AM
Q: Can't Delete relationships! MarkD General Discussion 2 September 24th, 2004 11:13 PM
Disappearing relationships Dan Database Design 2 August 6th, 2004 06:43 AM
Not seeing all relationships in layout window jettabug General Discussion 3 June 18th, 2004 05:42 PM
Table Relationships Design Tom Database Design 1 May 5th, 2004 11:56 PM


All times are GMT +1. The time now is 05:48 AM.


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