kcbeckwith
Technical User
Hi Everyone,
I could really use some help! I have a database that tracks lab results and it has about 8 tables in it. I have all the tables set up as a one to many. There all related back to the first table, which has the patient's first name, last name, and other data that would only have one record. My queries work fine when I use two tables, but my problem is that when I create a query that would use three of the tables, then I get duplicate data in my queries and reports. I have looked through many access books and even search through many web sites and can't seem to figure it out. Here's is some example of a couple of my tables and how I have them set up.
TblPatient - This table is the "1" of Many 1:m
PatientAuto - Primary Key
FirstName
LastName
Patient Id
Doctor
Weight
TblLab1 - Many
Lab1Id - Primary Key
Lab1PatientId
HBA1CDATE
HBA1CDATA
TRIGDATE
TRIGDATE
TblLab2 - Many
Lab2Id - Primary Key
HDLDATE
HDLDATA
MICRODATE
MICRODATA
I could really use some help! I have a database that tracks lab results and it has about 8 tables in it. I have all the tables set up as a one to many. There all related back to the first table, which has the patient's first name, last name, and other data that would only have one record. My queries work fine when I use two tables, but my problem is that when I create a query that would use three of the tables, then I get duplicate data in my queries and reports. I have looked through many access books and even search through many web sites and can't seem to figure it out. Here's is some example of a couple of my tables and how I have them set up.
TblPatient - This table is the "1" of Many 1:m
PatientAuto - Primary Key
FirstName
LastName
Patient Id
Doctor
Weight
TblLab1 - Many
Lab1Id - Primary Key
Lab1PatientId
HBA1CDATE
HBA1CDATA
TRIGDATE
TRIGDATE
TblLab2 - Many
Lab2Id - Primary Key
HDLDATE
HDLDATA
MICRODATE
MICRODATA