SubjectiveEffect
Technical User
- Apr 19, 2006
- 14
My database looks like this:
Patient data:
Patient number (primary key)
Patient DOB
Co-morbidity table:
Co-morbidity number (primary key)
Patient number (foreign key)
Co-morbidity type
Antibiotic table:
Antibiotic number (primary key)
Patient number (foreign key)
Antibiotic type
So each Patient can have multiple co-morbidities and multiple antibiotics. These are many-many relationships since each co-morbidity or antibiotic can be related to many patients. It needs extra tables in between Patient data and the other tables, so at the moment I have:
Antibiotic link table:
Antibiotic link number (primary key)
Patient number
Antibiotic number
Co-morbidity link table:
Co-morbidity link number (primary key)
Patient number
Antibiotic number
Ja. So why is this being posted in Access Forms?
Because I want to be able to do this (and I can't atm):
Add a new Patient, plus multiple co-morbidities and antibiotics for the same patient. I've tried copying the "Antibiotic type" and "Co-morbidity type" fields on the form but when I do opening the form produces a blank form - no fields. Without them I can create a form for just entering patient data.
Anyone any ideas?
Patient data:
Patient number (primary key)
Patient DOB
Co-morbidity table:
Co-morbidity number (primary key)
Patient number (foreign key)
Co-morbidity type
Antibiotic table:
Antibiotic number (primary key)
Patient number (foreign key)
Antibiotic type
So each Patient can have multiple co-morbidities and multiple antibiotics. These are many-many relationships since each co-morbidity or antibiotic can be related to many patients. It needs extra tables in between Patient data and the other tables, so at the moment I have:
Antibiotic link table:
Antibiotic link number (primary key)
Patient number
Antibiotic number
Co-morbidity link table:
Co-morbidity link number (primary key)
Patient number
Antibiotic number
Ja. So why is this being posted in Access Forms?
Because I want to be able to do this (and I can't atm):
Add a new Patient, plus multiple co-morbidities and antibiotics for the same patient. I've tried copying the "Antibiotic type" and "Co-morbidity type" fields on the form but when I do opening the form produces a blank form - no fields. Without them I can create a form for just entering patient data.
Anyone any ideas?