P
Pandora
I work at a health center where there are numerous research studies
done. Part of my job is software support, and while I keep reading
everywhere that one-to-one relationships are rare, I keep encountering
needs for them here.
For example, the project I'm currently trying to help with is for a
study where a patient comes in once a month and takes the same series
of exams for a year. We want to keep each exam in its own table, but
we'd also like to be able pull out the results by time period (all 3
month results).
I have the tables set up:
- Patient (Demographics)
- Evaluation (Date of Eval, Patient, Eval(0w,4w,8w...))
- Exam 1
- Exam 2
- Exam 3... Exam 18
One Patient has Many Evaluations
One Evaluation Leads to One Exam 1 (join type-all eval)
One Evaluation Leads to One Exam 2...
This logically makes sense to me, but I cannot get it dang thing to
cooperate with me. When I pull in Patients, Evals and an exam into a
query, it will let me update the data. However, as soon as I add a
second exam, i start getting the "You cannot add or change a record
because a related record is required in table 'evaluation'".
I've even included the eval keys from the exam tables, I'm seeing them
automatically fill in as I change the data, but I guess it's not
happening fast enough...?
Suggestions?
done. Part of my job is software support, and while I keep reading
everywhere that one-to-one relationships are rare, I keep encountering
needs for them here.
For example, the project I'm currently trying to help with is for a
study where a patient comes in once a month and takes the same series
of exams for a year. We want to keep each exam in its own table, but
we'd also like to be able pull out the results by time period (all 3
month results).
I have the tables set up:
- Patient (Demographics)
- Evaluation (Date of Eval, Patient, Eval(0w,4w,8w...))
- Exam 1
- Exam 2
- Exam 3... Exam 18
One Patient has Many Evaluations
One Evaluation Leads to One Exam 1 (join type-all eval)
One Evaluation Leads to One Exam 2...
This logically makes sense to me, but I cannot get it dang thing to
cooperate with me. When I pull in Patients, Evals and an exam into a
query, it will let me update the data. However, as soon as I add a
second exam, i start getting the "You cannot add or change a record
because a related record is required in table 'evaluation'".
I've even included the eval keys from the exam tables, I'm seeing them
automatically fill in as I change the data, but I guess it's not
happening fast enough...?
Suggestions?