I have a bit of a tricky problem. Hopefully someone can help me because this one has me a little stumped. I'm pretty new to Access and VBA for Access is not the same animal I know from other Office apps. After exporting to Excel and running a module to remove the unnecessary data (which I know how to do through Excel, so it was a bit of a cheat), I can re-import the data to Access. Now, here is where the rub lies: Every row contains 6 columns of data. I need to figure out a way to take values, based on column, and assign a column value, followed by the actual value that is stored in the column. For example:
Value1 Value2 Value3 Value4 Value 5 Value6
Null Null Null Value7 Value8 Value9
Null Null Null Value10 Value11 Value12
Value13 Value14 Value15 Value16 Value17 Value18
Null Null Null Value19 Value20 Value21
I need to be able to translate this into:
1, Value1
2, Value2
3, Value3
4, Value4
5, Value5
6, Value6
4, Value7
5, Value8
6, Value9
4, Value10
5, Value11
6, Value12
1, Value13
2, Value14
3, Value15
4, Value16
5, Value17
6, Value18
4, Value19
5, Value20
6, Value21
And so on.
1,2,3 groups are always followed by one or more 4,5,6 groups. I would have done this purely in Excel, but I am dealing with an enormous amount of data. Before reformatting, there are almost 62,000 rows of data, so Excel is not the best option because it maxes out (per sheet) at just 65,536 (256^2) rows of data. Like I mentioned, I'm pretty new to Access, so I am not familiar with all of its functionality yet. Can someone point me in the right direction? Thanks for your time, everyone! I really appreciate any help you can give me!
Value1 Value2 Value3 Value4 Value 5 Value6
Null Null Null Value7 Value8 Value9
Null Null Null Value10 Value11 Value12
Value13 Value14 Value15 Value16 Value17 Value18
Null Null Null Value19 Value20 Value21
I need to be able to translate this into:
1, Value1
2, Value2
3, Value3
4, Value4
5, Value5
6, Value6
4, Value7
5, Value8
6, Value9
4, Value10
5, Value11
6, Value12
1, Value13
2, Value14
3, Value15
4, Value16
5, Value17
6, Value18
4, Value19
5, Value20
6, Value21
And so on.
1,2,3 groups are always followed by one or more 4,5,6 groups. I would have done this purely in Excel, but I am dealing with an enormous amount of data. Before reformatting, there are almost 62,000 rows of data, so Excel is not the best option because it maxes out (per sheet) at just 65,536 (256^2) rows of data. Like I mentioned, I'm pretty new to Access, so I am not familiar with all of its functionality yet. Can someone point me in the right direction? Thanks for your time, everyone! I really appreciate any help you can give me!