Hello All!
I am relatively new to MS Access and come from an academic/biostats background. I am looking to make a database in access to hold leftover samples from old studies that my team has worked on. Here's a picture of my relationships and tables.
I think most of the tables are pretty self-explanatory but I'll describe them shortly:
StudyData: contains data on studies (Name, description)
Sites: has data on the sites that participate in each study
TimePts: Lists the timepoints from which samples were collected for each study
Patient: Lists patient IDs and associates them with a site and a study. Pt_ID, the PK, is an autonumber
Collections: Lists collection events. Collection_ID is an autonumber
Specimens: Lists the specimens for a given collection time point. The reason is because multiple specimens of different types can come from one collection time point.
Finally, Locations: I made this its own table but it could easily be absorbed into the specimens table as it is a 1:1 relationship.
I am making this database for my team and am hoping to create some forms for easy data entry. I have one form that allows you to input a study, its dedicated sites, and the time points in which samples are collected. From here, I am hoping to make a form that allows my team to do a lot (maybe a bit too much) at once. The goals are as follows:
1. Enter a pt ID for a new or existing pt in the database
2. Pick the study and site that they are associated with
3. Select the collection date, collection time point, and notes for the collection (ignoring status for now)
4. In a subform, list all of the specimen data (type, volume, location)
I have been trying to get it in this format (gotten from the form creation wizard)
but have been largely unsuccessful, and keep getting cannot add records; join key of table sites not in recordset errors. I am also trying to do it by hand but I am struggling to link the subform to the main form through collection_id.
Does this seem like a valid approach and if so, any tips on how I can go about this? If not, please let me know and I will pivot to some other format.
Thanks in advance for your access wizardry!
Best,
Lakshin K.
I am relatively new to MS Access and come from an academic/biostats background. I am looking to make a database in access to hold leftover samples from old studies that my team has worked on. Here's a picture of my relationships and tables.
I think most of the tables are pretty self-explanatory but I'll describe them shortly:
StudyData: contains data on studies (Name, description)
Sites: has data on the sites that participate in each study
TimePts: Lists the timepoints from which samples were collected for each study
Patient: Lists patient IDs and associates them with a site and a study. Pt_ID, the PK, is an autonumber
Collections: Lists collection events. Collection_ID is an autonumber
Specimens: Lists the specimens for a given collection time point. The reason is because multiple specimens of different types can come from one collection time point.
Finally, Locations: I made this its own table but it could easily be absorbed into the specimens table as it is a 1:1 relationship.
I am making this database for my team and am hoping to create some forms for easy data entry. I have one form that allows you to input a study, its dedicated sites, and the time points in which samples are collected. From here, I am hoping to make a form that allows my team to do a lot (maybe a bit too much) at once. The goals are as follows:
1. Enter a pt ID for a new or existing pt in the database
2. Pick the study and site that they are associated with
3. Select the collection date, collection time point, and notes for the collection (ignoring status for now)
4. In a subform, list all of the specimen data (type, volume, location)
I have been trying to get it in this format (gotten from the form creation wizard)
but have been largely unsuccessful, and keep getting cannot add records; join key of table sites not in recordset errors. I am also trying to do it by hand but I am struggling to link the subform to the main form through collection_id.
Does this seem like a valid approach and if so, any tips on how I can go about this? If not, please let me know and I will pivot to some other format.
Thanks in advance for your access wizardry!
Best,
Lakshin K.