I have two tables:
tblStudentScore:
StudentID, TestID, a1_01, ... , a6_20
tblBenchmark:
TestID, ScorePosition, Benchmark
tblStudentScore has a lot of fields that are blank because different TestID tests different things. So Test 1 can have a1_01 but Test 2 does not.
I took two approaches. The first approach, I used DLookup to compare the values. The second approach, I created a crosstab of tblBenchmark, then I subtracted the two fields.
The first approach got rid of all the blank fields, but it transposed my table and increased the number of records from 8,000 to 300,000. So it takes forever to perform any average calculation.
The second approach retains the 8,000 records, but there's 50+ fields that I have to type a1_01 - a1_01. Also, in the future, the number of fields can change. The second approach isn't as flexible.
Does anyone have another approach that combines the flexibility of approach 1 while retaining the same # of records?
tblStudentScore:
StudentID, TestID, a1_01, ... , a6_20
tblBenchmark:
TestID, ScorePosition, Benchmark
tblStudentScore has a lot of fields that are blank because different TestID tests different things. So Test 1 can have a1_01 but Test 2 does not.
I took two approaches. The first approach, I used DLookup to compare the values. The second approach, I created a crosstab of tblBenchmark, then I subtracted the two fields.
The first approach got rid of all the blank fields, but it transposed my table and increased the number of records from 8,000 to 300,000. So it takes forever to perform any average calculation.
The second approach retains the 8,000 records, but there's 50+ fields that I have to type a1_01 - a1_01. Also, in the future, the number of fields can change. The second approach isn't as flexible.
Does anyone have another approach that combines the flexibility of approach 1 while retaining the same # of records?