G
Guest
I have designed a small database customized for one particular department of
the company. The company uses a much larger database, which I don't know
much about except that it's complicated to use and in my opinion doesn't seem
to be very well designed. In order to assist us somewhat, the IT dept. does
daily exports of only the data we need for our dept., and sends it to us in
the form of an excel spreadsheet. I then convert the spreadsheet to a table
in Access in order to link it with other tables, forms, reports etc. that we
utilize. This all works fine, but due to the poor design of the database
from which we get the data, there is alot of duplications and tables are not
really organized the way I would like. I can't do anything about the way we
get the data, What I want to know is if there is anyway with (code, queries,
something) that I can change things around either in excel before the
conversion or in access afterwards. Following is an more detailed
explanation of what I would like:
The table design Now: RecordNo is PK(autonumber), The SampleID has
duplicates due to the fact that each sample can have several different tests
performed on it, From there, each Test usually contains several SubTests.
Yet all this data is in one single Table. Nothing I can do about that
though, just want to fix it after I get it.
RecordNo SampleID TestName SubTestName
190 60589 Test1 SubTestA(Same as Test1)
191 60589 Test1 SubTestB
192 60589 Test1 SubTestC
193 60589 Test2 SubTestA(Same as Test2)
194 60589 Test2 SubTestB
195 60589 Test2 SubTestC
196 60589 Test3 SubTestA(Same as Test3)
197 60589 Test3 SubTestB
198 60589 Test3 SubTestC
199 60589 Test4 SubTestA(Same as Test4)
193 60589 Test4 SubTestB
194 60589 Test4 SubTestC
195 87254 Test1 SubTestA
etc., etc.
As you can see a lot of duplication. I have a Form which I use to pull up
all the data for Specific SampleID, where the "Test" data is displayed in the
Main section of the form, and the "SubTest" data is displayed in a continuous
subform. It works fine, but due to the table design, If a SampleID consists
of 4 Main Tests which each have 3 subtests, I get 12 records on the main
form, with the each Main test being repeated 3 times, and the correct
subtests show up in the subform, but they show up for each time the main test
is repeated.
I would like for each Main test to only be displayed once in the main form,
and depending on what main test is selected, the appropriate subtest(s) data
appear in the subform. Is there a way I can make the form only display the
data once, or do I need to somehow divide up or rearrange the tables, if so
how can I do that?
the company. The company uses a much larger database, which I don't know
much about except that it's complicated to use and in my opinion doesn't seem
to be very well designed. In order to assist us somewhat, the IT dept. does
daily exports of only the data we need for our dept., and sends it to us in
the form of an excel spreadsheet. I then convert the spreadsheet to a table
in Access in order to link it with other tables, forms, reports etc. that we
utilize. This all works fine, but due to the poor design of the database
from which we get the data, there is alot of duplications and tables are not
really organized the way I would like. I can't do anything about the way we
get the data, What I want to know is if there is anyway with (code, queries,
something) that I can change things around either in excel before the
conversion or in access afterwards. Following is an more detailed
explanation of what I would like:
The table design Now: RecordNo is PK(autonumber), The SampleID has
duplicates due to the fact that each sample can have several different tests
performed on it, From there, each Test usually contains several SubTests.
Yet all this data is in one single Table. Nothing I can do about that
though, just want to fix it after I get it.
RecordNo SampleID TestName SubTestName
190 60589 Test1 SubTestA(Same as Test1)
191 60589 Test1 SubTestB
192 60589 Test1 SubTestC
193 60589 Test2 SubTestA(Same as Test2)
194 60589 Test2 SubTestB
195 60589 Test2 SubTestC
196 60589 Test3 SubTestA(Same as Test3)
197 60589 Test3 SubTestB
198 60589 Test3 SubTestC
199 60589 Test4 SubTestA(Same as Test4)
193 60589 Test4 SubTestB
194 60589 Test4 SubTestC
195 87254 Test1 SubTestA
etc., etc.
As you can see a lot of duplication. I have a Form which I use to pull up
all the data for Specific SampleID, where the "Test" data is displayed in the
Main section of the form, and the "SubTest" data is displayed in a continuous
subform. It works fine, but due to the table design, If a SampleID consists
of 4 Main Tests which each have 3 subtests, I get 12 records on the main
form, with the each Main test being repeated 3 times, and the correct
subtests show up in the subform, but they show up for each time the main test
is repeated.
I would like for each Main test to only be displayed once in the main form,
and depending on what main test is selected, the appropriate subtest(s) data
appear in the subform. Is there a way I can make the form only display the
data once, or do I need to somehow divide up or rearrange the tables, if so
how can I do that?