Hi
I am trying to figure out the way to export results of my query to Excel. The trick is that in the ideal world there would be a new Excel file created every time a value changes in one of the columns.
My query is pretty simple:
The idea is to achieve following:
ClientCode | Quantity| SEDOL | Fund
1 | 123 | A | X
2 | 234 | A | Z
3 | 456 | B | Y
4 | 678 | B | U
5 | 789 | C | V
Files exported to Excel:
File caled A.xls would contain clients 1 & 2 and the corresponding Quantity, SEDOL and Fund
File called B.xls for clients 3 & 4
and the file C.xls for client no 5.
Any helps would be much appreciated.
I am trying to figure out the way to export results of my query to Excel. The trick is that in the ideal world there would be a new Excel file created every time a value changes in one of the columns.
My query is pretty simple:
Code:
SELECT [Scheduler Trades].ClientCode, [Scheduler Trades].Quantity, [Scheduler Trades].SEDOL, [TP Data Fund list].Fund
FROM [Scheduler Trades] LEFT JOIN [TP Data Fund list] ON [Scheduler Trades].SEDOL=[TP Data Fund list].SEDOL
WHERE ((([Scheduler Trades].Quantity)<0));
The idea is to achieve following:
ClientCode | Quantity| SEDOL | Fund
1 | 123 | A | X
2 | 234 | A | Z
3 | 456 | B | Y
4 | 678 | B | U
5 | 789 | C | V
Files exported to Excel:
File caled A.xls would contain clients 1 & 2 and the corresponding Quantity, SEDOL and Fund
File called B.xls for clients 3 & 4
and the file C.xls for client no 5.
Any helps would be much appreciated.