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  

Access 2000 - Create a Dependants Table



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2007, 03:44 AM posted to microsoft.public.access.tablesdbdesign
Tony_VBACoder
external usenet poster
 
Posts: 2
Default Access 2000 - Create a Dependants Table

For a Health Club membership system, I have been tasked with designing a
Parent and Dependants (Family Members) table so we can track what Members are
signing up for classes. My first thought is to have both the Parent and each
of the Family Members in a single table each being assigned their own
CustomerID.

Is this the best way to accomplish this?

My sample layout for my tblCustomers is:
--------------------------------------
CustomerID (Primary Key)
Salutation
FirstName
LastName
DateOfBirth
ParentCustomerID
--------------------------------------

Also, when I coming up with a design for the Member Entry Form, where the
Parent information would be on the Main Form and I would have a SubForm to
enter each of the Dependants (Family Members), I would link my SubForm to
MainForm based on the followign fields from my tblCustomers:
Link Child Fields = ParentCustomerID
Link Master Fields = CustomerID


Any thoughts or sample applications I can look at?

  #2  
Old June 1st, 2007, 09:10 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Access 2000 - Create a Dependants Table

Placing all the people in the one table is a really good approach.

Using a ParentCustomerID foreign key field will limit you to just one parent
per customer. Is that adequate for your needs? Could there ever be cases
where you may need to record that a person has 2 parents?

Could there be more than 2 parents? Step parents, or guardians (for foster
children), or ...?

If you need only 2, a FatherID and MotherID would be useful, like this
example:
http://allenbrowne.com/ser-06.html

If you may need more than two, perhaps this example could help:
http://allenbrowne.com/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.

"Tony_VBACoder" wrote in message
...
For a Health Club membership system, I have been tasked with designing a
Parent and Dependants (Family Members) table so we can track what Members
are
signing up for classes. My first thought is to have both the Parent and
each
of the Family Members in a single table each being assigned their own
CustomerID.

Is this the best way to accomplish this?

My sample layout for my tblCustomers is:
--------------------------------------
CustomerID (Primary Key)
Salutation
FirstName
LastName
DateOfBirth
ParentCustomerID
--------------------------------------

Also, when I coming up with a design for the Member Entry Form, where the
Parent information would be on the Main Form and I would have a SubForm to
enter each of the Dependants (Family Members), I would link my SubForm to
MainForm based on the followign fields from my tblCustomers:
Link Child Fields = ParentCustomerID
Link Master Fields = CustomerID


Any thoughts or sample applications I can look at?


  #3  
Old June 1st, 2007, 02:29 PM posted to microsoft.public.access.tablesdbdesign
Tony_VBACoder
external usenet poster
 
Posts: 2
Default Access 2000 - Create a Dependants Table

Allen, thank you for the links and the information. To answer some of your
questions:

1) In my case, a Dependant (Family Member) would only have 1 parent.
2) No, there would not be a case for 2 parents


"Allen Browne" wrote:

Placing all the people in the one table is a really good approach.

Using a ParentCustomerID foreign key field will limit you to just one parent
per customer. Is that adequate for your needs? Could there ever be cases
where you may need to record that a person has 2 parents?

Could there be more than 2 parents? Step parents, or guardians (for foster
children), or ...?

If you need only 2, a FatherID and MotherID would be useful, like this
example:
http://allenbrowne.com/ser-06.html

If you may need more than two, perhaps this example could help:
http://allenbrowne.com/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.

"Tony_VBACoder" wrote in message
...
For a Health Club membership system, I have been tasked with designing a
Parent and Dependants (Family Members) table so we can track what Members
are
signing up for classes. My first thought is to have both the Parent and
each
of the Family Members in a single table each being assigned their own
CustomerID.

Is this the best way to accomplish this?

My sample layout for my tblCustomers is:
--------------------------------------
CustomerID (Primary Key)
Salutation
FirstName
LastName
DateOfBirth
ParentCustomerID
--------------------------------------

Also, when I coming up with a design for the Member Entry Form, where the
Parent information would be on the Main Form and I would have a SubForm to
enter each of the Dependants (Family Members), I would link my SubForm to
MainForm based on the followign fields from my tblCustomers:
Link Child Fields = ParentCustomerID
Link Master Fields = CustomerID


Any thoughts or sample applications I can look at?



 




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


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