K
Kevin
Hello:
I have the following two tables:
(1) tblPharmacy has individual prescriptions from a pharmacy listed by
medical record number, date of prescription, and drug class (one of 2 defined
drug classes)
(2) tblPatients has individual patients listed by medical record number
These two tables are related by medical record number.
I want to add fields into tblPatients for the following two values:
(1) Date of first prescription
(2) Date of last prescription
Furthermore, for these two values (first and last date), I want this to be
separated by drug class so tblPatietns would look something like:
MRN, DateFirstDrug1, DateLastDrug1, DateFirstDrug2, DateLastDrug2
*MY QUESTION*
Could I get any help on how I can do this? I am thinking this would take
some sort of VBA script to automatically go through all the records in both
tables and enter the data into these field? Any directions of something to
look up to figure out how to do this would be great!
Thanks!
I have the following two tables:
(1) tblPharmacy has individual prescriptions from a pharmacy listed by
medical record number, date of prescription, and drug class (one of 2 defined
drug classes)
(2) tblPatients has individual patients listed by medical record number
These two tables are related by medical record number.
I want to add fields into tblPatients for the following two values:
(1) Date of first prescription
(2) Date of last prescription
Furthermore, for these two values (first and last date), I want this to be
separated by drug class so tblPatietns would look something like:
MRN, DateFirstDrug1, DateLastDrug1, DateFirstDrug2, DateLastDrug2
*MY QUESTION*
Could I get any help on how I can do this? I am thinking this would take
some sort of VBA script to automatically go through all the records in both
tables and enter the data into these field? Any directions of something to
look up to figure out how to do this would be great!
Thanks!