I am working on a database to be used with our Juvenile Detention Center and I'm running into a problem on how to tie the tables together. Here is what I have.
I have 6 main tables
Residents
Guardians
InvPersons
Admissions
Careplan
Discharge
My main Residents table stores data about the resident, Name, age, SS#, race ect..
Guardians stores info about the residents parents Name, address, phone...
InvPersons stores data about their Case worker, Attorney..
Those three table are all based on the resident.
Tables Admissions, Careplan, and Discharge are related to each individual admission. They are all linked together by a field called CaseNo. Each admission will have a seperate case #.
I had previously had the Resident and the Admissions table linked together by the name field. I had 1 field for the name. The Department wantes the name to be broken into 3 fields, Last, First and MI. Which kills my linking by name since there are several residents with the last name.
Each resident has a ResID that is assigned by the department. The problem there is I have to import data from a different database and there are several hundred residents with the same ResID so ResID is out. I thought about adding another ID field as autonumber to the Resident, Guardians, and InvPersons tables but I have learned that when a resident comes in they just add him/her into the resident table and then come back later (maybe even after adding in several more Residents) and filling in the rest of the tables. In my playing around I found that it was fairly easy to get the information added in the wrong order so that they don't always match up to who they are supposed to.
I then must tie in the Residents table to the Admissions table.
Any suggestions?
I have 6 main tables
Residents
Guardians
InvPersons
Admissions
Careplan
Discharge
My main Residents table stores data about the resident, Name, age, SS#, race ect..
Guardians stores info about the residents parents Name, address, phone...
InvPersons stores data about their Case worker, Attorney..
Those three table are all based on the resident.
Tables Admissions, Careplan, and Discharge are related to each individual admission. They are all linked together by a field called CaseNo. Each admission will have a seperate case #.
I had previously had the Resident and the Admissions table linked together by the name field. I had 1 field for the name. The Department wantes the name to be broken into 3 fields, Last, First and MI. Which kills my linking by name since there are several residents with the last name.
Each resident has a ResID that is assigned by the department. The problem there is I have to import data from a different database and there are several hundred residents with the same ResID so ResID is out. I thought about adding another ID field as autonumber to the Resident, Guardians, and InvPersons tables but I have learned that when a resident comes in they just add him/her into the resident table and then come back later (maybe even after adding in several more Residents) and filling in the rest of the tables. In my playing around I found that it was fairly easy to get the information added in the wrong order so that they don't always match up to who they are supposed to.
I then must tie in the Residents table to the Admissions table.
Any suggestions?