crazy_ivan_1
New member
- Local time
- Tomorrow, 08:46
- Joined
- Jun 7, 2020
- Messages
- 23
Hi all,
I am currently building a labwork tracking database.
In my main tracking table I have a.
ID(autonumber) - PK
patient_appt (date) - PK
patient_name (text) - PK
clinician (text) - PK
laboratory (text) - PK
I may not need that many primary keys, but I am new to access and I think they are required here to minimise duplication. THere are other data fields, but they are used primarily for querying dates and keeping track of storage areas.
What I am trying to do is have an alert table where if there are any issues associated with a particular patient they can be logged by date and a text description. So 1 patient connected to one ID number can be linked to multiple alert dates and text descriptions that are stored in a separate table.
I cannot figure our how to use primary keys and foreign keys to create the second table so that it is a one to many relationship that I can view multiple logged issues for 1 patient.
Thanks for any advice or guidance
Cheers
Andrew
I am currently building a labwork tracking database.
In my main tracking table I have a.
ID(autonumber) - PK
patient_appt (date) - PK
patient_name (text) - PK
clinician (text) - PK
laboratory (text) - PK
I may not need that many primary keys, but I am new to access and I think they are required here to minimise duplication. THere are other data fields, but they are used primarily for querying dates and keeping track of storage areas.
What I am trying to do is have an alert table where if there are any issues associated with a particular patient they can be logged by date and a text description. So 1 patient connected to one ID number can be linked to multiple alert dates and text descriptions that are stored in a separate table.
I cannot figure our how to use primary keys and foreign keys to create the second table so that it is a one to many relationship that I can view multiple logged issues for 1 patient.
Thanks for any advice or guidance
Cheers
Andrew