Hi, i run into a problem deciding how i am going to go about this as i am just learning access. Here it is, it's for a nutritional company. I have 3 different types of clients (Average customer, Doctor, Business Contact). Between these 3 clients they have some similar fields and some different. I decided to create this structure and i'm not sure if it is right so correct me if i am wrong.
tblPerson
-PersonId (PK)
-PersonTypeId (FK - tblPersonType)
-LastName
-FirstName
-MiddleInitial
-Title
-Email
-DoB
-MaritalStatus
tblPersonType (goign to be a lookup)
-PersonTypeId (PK)
-PersonType (determine whether they are a customer, doctor, business)
tblClientDetail
-PersonId (PK)
-Occupation
tblBusinessDetail
-PersonId (PK)
-Website
-Description
tbldoctorDetail
-PersonId (FK - tblPerson)
-ClinicName (FK - tblClinicDetail)
there will be a 1 to 1 relationship from the all the detail tables to tblPerson.
Also, i can't decide what i will do about street address, do to the fact that a client is ther home address, business is there company address and doctors have there clinic name and address, which there different. I can't put that in one field under tblPerson just in case if a doctor or business associate becomes a client and comes in for a weight problem then i will have to create another record for the same person.
I was originally going to put all the fields in one table such as website and description from tblBusinessDetails into tblPerson and just create a form for each type of client with only the necessarey fields, but thought it would be more organized to seperate into different tables where fields are unique for each type of client. I hope this is enough decription of my problem. Any ideas and help will be appreciated. Thanks in advance.
Joso
tblPerson
-PersonId (PK)
-PersonTypeId (FK - tblPersonType)
-LastName
-FirstName
-MiddleInitial
-Title
-DoB
-MaritalStatus
tblPersonType (goign to be a lookup)
-PersonTypeId (PK)
-PersonType (determine whether they are a customer, doctor, business)
tblClientDetail
-PersonId (PK)
-Occupation
tblBusinessDetail
-PersonId (PK)
-Website
-Description
tbldoctorDetail
-PersonId (FK - tblPerson)
-ClinicName (FK - tblClinicDetail)
there will be a 1 to 1 relationship from the all the detail tables to tblPerson.
Also, i can't decide what i will do about street address, do to the fact that a client is ther home address, business is there company address and doctors have there clinic name and address, which there different. I can't put that in one field under tblPerson just in case if a doctor or business associate becomes a client and comes in for a weight problem then i will have to create another record for the same person.
I was originally going to put all the fields in one table such as website and description from tblBusinessDetails into tblPerson and just create a form for each type of client with only the necessarey fields, but thought it would be more organized to seperate into different tables where fields are unique for each type of client. I hope this is enough decription of my problem. Any ideas and help will be appreciated. Thanks in advance.
Joso
Last edited: