I need help setting up my database tables having them all connect. I work for a molecular lab, and we get blood samples; a blood comes in with a Location, type of tumor, and a name. I need a system that can track the bloods through our process, then store the data with the status of the sample. I cannot connect our results excel spreadsheet output (importing data) with the sample we just entered into the database.
This is my structure so far...
Now for a results I dont know how the table should look. I've been told I should normalize my data, however our results from excel will not import properly into access when normalized.Code:tblTest -TestType [ex. NETest, Colon, Mylenoma, Multiple Melanoma, Bronchopulmonary, ect...] -TestAbbreviation [ex. NT, CL, ML, MM, BP, ect...] - PK tblFacility -FacilityName [ex. Poland] -FacilityAbbreviation [ex. PL] -PK -PhoneNumber -ContactName -Address -Email tblSample -WrenID (Calculated Field - [FacilityAbbreivation] & "-" & [CalcID] & " -CalcID (Hidden formats the SampleID to look like "0000#") -SampleID (autonumbering) } -SampleName } -FacilityAbbreviation FK} Composite Key (COMBOBOX LOOKUP FIELD - tblFacility) -TestAbbreviation FK} (COMBOBOX LOOKUP FIELD - tblTest) -SecondaryTest (COMBOBOX LOOKUP FIELD - tblTest) - if we do multiple tests on one Sample (a multiple value combobox - cannot call upon the values) -DateReceived -FreezerLocation -BloodProcessed -DateBloodProcessed -PCR -DatePCR -DataAnalyzed -DateDataAnalyzed
As of now I got it to show up in a query using the SampleID (autonumbering system) and an ID as a Primary key when uploading the PCR results (autonumbering system) using a one-to-many.
The Excel spreadsheet for TestType = NETest
Excel SpreadSheet for Colon TestCode:-SampleName [Will be our WrenID made from access calculated field above] -MATLAB [#] -Progressive [#] -NETScore [#] -HouseKeepingGene [Short Text] -SecondaryKeepingGene [Short Text] -PositiveControl1 [#] -PositiveControl2 [#] -PositiveControl3 [#] -PositiveControl4 [#] -MainProliferome [#] -GeneProliferome1 [#] -GeneProliferome2 [#] -GrowthFactor [#] -ProgOme [#] -GenOme [#] -Epigenome [#] -Apoptome [#] -Plurome [#] -SOme [#] -SOme1 [#] -SOme2 [#] -SOme3 [#] -SOme4 [#] -ROC [#] -2D [#] -Gene1 [#] -Gene2 [#] -Gene3 [#] -Gene...ect [#] -Gene52 [#]
So storing this data in my database what is the best approach?Code:-SampleName (WrenID) -Gene1 [#] -Gene2 [#] -Gene3 [#] -Gene4 [#] -Gene5 [#] -Gene6 [#] -Gene7 [#] -Gene8 [#]
I was told I need to normalize my data, however I dont see how that works really with our results.
But now, do I call this in a query? I dont really see how this applies to our database.Code:tblNormalizedData -DataID -SampleName (WrenID) -GeneName (lookup field from a gene table that has all the genes for each test) -GeneValue [#]
The basic information is put into tblSample - this gives us a WrenID and tells us where we are with the sample.
But the results to the sample dont come in till later. I cannot really get the results to be connected to that sample, unless I put the results right after that sample, however if the sample doesnt have certain tests run then those tests results will be blank.


Reply With Quote

