SurreyNick
Member
- Local time
- Today, 15:08
- Joined
- Feb 12, 2020
- Messages
- 127
Using VBA can someone explain the process I need to follow to transpose the data in the spreadsheet shown in pic1 into a db table laid out as shown in pic2?
Cycling through each of the records in the spreadsheet I need to take the StudentID and ClassRef and append to it an ExamPaperID which will come from a control on my form, then take each question number in turn e.g. 1.1, 1.2, 1.3 etc. and add the student's score for that question, repeating this through all question numbers before moving on to the next student record.
Other than doing a very long-winded transposition copying and pasting within Excel I don’t know where to begin. I am sure there’s a much better way than this but I don’t know what that would be.
If someone can point me in the right direction, perhaps directing me at a similar example which I can use as a foundation, I would be very grateful.
Thank you.
Cycling through each of the records in the spreadsheet I need to take the StudentID and ClassRef and append to it an ExamPaperID which will come from a control on my form, then take each question number in turn e.g. 1.1, 1.2, 1.3 etc. and add the student's score for that question, repeating this through all question numbers before moving on to the next student record.
Other than doing a very long-winded transposition copying and pasting within Excel I don’t know where to begin. I am sure there’s a much better way than this but I don’t know what that would be.
If someone can point me in the right direction, perhaps directing me at a similar example which I can use as a foundation, I would be very grateful.
Thank you.