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

In Access How do I link contacts (i.e spouses) in the same table



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2006, 02:44 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default In Access How do I link contacts (i.e spouses) in the same table

I am trying to create a contact database where both the primary contact and
the spouse can both be clients. They need to be listed as separate contacts
since they can both own products, but I also need to link to each other. I
prefer to do this in the same table but I worry about this creating two
listings for each HUSBAND/WIFE and WIFE/HUSBAND combination.
  #2  
Old February 14th, 2006, 02:59 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default In Access How do I link contacts (i.e spouses) in the same table

off the cuff - one way would be to create a new field "CoupleID" and for such
couples supply a unique ID that they share.
--
NTC


"Bill Adkins" wrote:

I am trying to create a contact database where both the primary contact and
the spouse can both be clients. They need to be listed as separate contacts
since they can both own products, but I also need to link to each other. I
prefer to do this in the same table but I worry about this creating two
listings for each HUSBAND/WIFE and WIFE/HUSBAND combination.

  #3  
Old February 14th, 2006, 05:45 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default In Access How do I link contacts (i.e spouses) in the same table

On Mon, 13 Feb 2006 18:44:26 -0800, "Bill Adkins" Bill
wrote:

I am trying to create a contact database where both the primary contact and
the spouse can both be clients. They need to be listed as separate contacts
since they can both own products, but I also need to link to each other. I
prefer to do this in the same table but I worry about this creating two
listings for each HUSBAND/WIFE and WIFE/HUSBAND combination.


It depends on how thoroughly you want to do this. If each contact will
be linked to either zero or one, no more, other contacts, you can put
a SpouseID field in the table; leave it null for those curmudgeonly
bachelors. This is somewhat redundant as you must fill in Desi in
Luci's record, and fill in Luci into Desi's, or risk having several
episodes' worth of misunderstandings result!

Another way is to implement a "many to many self join" with a
Relations table: it would have records for FirstID, SecondID,
Relationship. Again, you need two records to get the symmetry, or else
to use a slightly fancier query joining the Relationships table twice,
once each direction.

Finally, you might consider a Households table (perhaps containing the
mailing address, likely to be the same for both) related one-to-many
to your Customers table. This would have the advantage of symmetry
(everybody, even bachelors, belongs to one and only one household) and
flexibility (husband, wife, live-in parents, adult offspring etc. can
all be added).

John W. Vinson[MVP]
  #4  
Old February 14th, 2006, 12:30 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default In Access How do I link contacts (i.e spouses) in the same tab

John I like the household idea. I really appreciate your help

For mail merge purposes I have no problems combining their names.

[firstname1] & " " & [lastname1] & " " & "and" & " " & [firstname2] & " " &
[lastname2]
or
[firstname1] & " " & "and" & " " & [firstname2] & " " & [lastname2]

How can I write it so that if the Last names are the same it reads
John and Judy Smith
but if the last names are different it will read
John Smith and Judy Johnson

"John Vinson" wrote:

On Mon, 13 Feb 2006 18:44:26 -0800, "Bill Adkins" Bill
wrote:

I am trying to create a contact database where both the primary contact and
the spouse can both be clients. They need to be listed as separate contacts
since they can both own products, but I also need to link to each other. I
prefer to do this in the same table but I worry about this creating two
listings for each HUSBAND/WIFE and WIFE/HUSBAND combination.


It depends on how thoroughly you want to do this. If each contact will
be linked to either zero or one, no more, other contacts, you can put
a SpouseID field in the table; leave it null for those curmudgeonly
bachelors. This is somewhat redundant as you must fill in Desi in
Luci's record, and fill in Luci into Desi's, or risk having several
episodes' worth of misunderstandings result!

Another way is to implement a "many to many self join" with a
Relations table: it would have records for FirstID, SecondID,
Relationship. Again, you need two records to get the symmetry, or else
to use a slightly fancier query joining the Relationships table twice,
once each direction.

Finally, you might consider a Households table (perhaps containing the
mailing address, likely to be the same for both) related one-to-many
to your Customers table. This would have the advantage of symmetry
(everybody, even bachelors, belongs to one and only one household) and
flexibility (husband, wife, live-in parents, adult offspring etc. can
all be added).

John W. Vinson[MVP]

 




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
Query is not updatable - Doug Johnson via AccessMonster.com Running & Setting Up Queries 3 January 21st, 2006 12:36 AM
Can't refresh Access Link to SQL table through ODBC Redstone Using Forms 0 November 27th, 2005 08:09 AM
How to delete duplicate contacts folders in Office XP? Robert O'Connell Contacts 18 October 6th, 2005 11:43 PM
Access 2000 -vs- Access 2003? Mark General Discussion 5 November 30th, 2004 06:36 AM
Access XP Compared to Access 2003 Mardene Leahu New Users 1 October 1st, 2004 05:11 AM


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