J
jsmithjvh
Hello,
I need help with my database. Here's the basic layout: I have a table for
patient data that is imported on a daily basis. That data is then queried to
eliminate null values and the query is the source for my main form. I then
have a subform based on a table with procedures that has no data in it. It
is strictly for data entry to include the date of service and checkboxes for
procedures rendered. I used the PtID (auto number) as my primary key in my
main form and the same name for a foreign key in the subform. Those fields
are used as the link parent/child fields. I have a one-to-many relationship
(patient = 1, procedures = many) although I could not enforce referential
integrity due to some error and I don't know if that matters. You use the
main form to choose the correct patient (from a combo box) and it displays
that pt data correctly. Then you tab over to the subform and add the date of
service and procedures (data entry set to no). I was hoping Access would
nicely group the information together so that I can see each patient, their
date of service, and their procedures rendered. Instead, it appears that it
writes the same data over and over using the first patient record in my
query. It also appears that the auto number is not changing, not increasing.
Just writing the same number to the procedures table over and over. Any way
to remedy this?
I'm also a little nervous about data integrity.....I'd love the main form to
copy some patient data to the subform, at least for visual confirmation, as
well as write that info into the procedures table, which would then include
all the data I need to do my job. Any way to do this? Or should I trust a
query based solely on the auto number as a linking field?
Thanks in advance for your help.
jsmith
I need help with my database. Here's the basic layout: I have a table for
patient data that is imported on a daily basis. That data is then queried to
eliminate null values and the query is the source for my main form. I then
have a subform based on a table with procedures that has no data in it. It
is strictly for data entry to include the date of service and checkboxes for
procedures rendered. I used the PtID (auto number) as my primary key in my
main form and the same name for a foreign key in the subform. Those fields
are used as the link parent/child fields. I have a one-to-many relationship
(patient = 1, procedures = many) although I could not enforce referential
integrity due to some error and I don't know if that matters. You use the
main form to choose the correct patient (from a combo box) and it displays
that pt data correctly. Then you tab over to the subform and add the date of
service and procedures (data entry set to no). I was hoping Access would
nicely group the information together so that I can see each patient, their
date of service, and their procedures rendered. Instead, it appears that it
writes the same data over and over using the first patient record in my
query. It also appears that the auto number is not changing, not increasing.
Just writing the same number to the procedures table over and over. Any way
to remedy this?
I'm also a little nervous about data integrity.....I'd love the main form to
copy some patient data to the subform, at least for visual confirmation, as
well as write that info into the procedures table, which would then include
all the data I need to do my job. Any way to do this? Or should I trust a
query based solely on the auto number as a linking field?
Thanks in advance for your help.
jsmith