I have Excel 2007, using MS Query towards SQL server.
I need help to find the correct code/method to get the following working:
I want to run the query below on a number (max 50) of DATA14. DATA14 and ACCID are variables that the user will change. The ACCID parameters will be the same for each column and DATA14 will vary. So for DATA14 =2, I want the result in B7 and C7, for DATA14 =4 in B8 and C8 and so on.
The idea was to run the query for each parameter set OR to create a table as output, but I do not know how to.
|
A |
B |
C |
1 |
ACCID |
3000 |
5000 |
2 |
ACCID |
3999 |
5999 |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
DATA14 |
Net |
Net |
7 |
2 |
|
|
8 |
4 |
|
|
9 |
10 |
|
|
.. |
|
|
|
56 |
110 |
|
|
Table.gif
Bookmarks