SalemGrafix
IS-IT--Management
Several times in the past, I've used the Active X control from Excel in Visual Basic to populate a spreadsheet and export the data (usually pulled from a database, to store the information for later usage or for certain report formatting).
Currently I'm trying to use it, and if the Query I'm pulling from is small (1k records or less), it functions just fine (although a little sluggish towards the end), but when I go over 3k records, it not only comes to a crawl, but eventually runs itself out of resources.
I was wondering if anyone has ran into this issue in the past, and if a solution was found, or a better way to implement this (such as exporting to a flat file instead, which is the last resort at this time).
For a more precise explaination, I'm running a query against our database, and using those fields (some with calculations) to populate an Excel spreadsheet (via Active X) and the program then exports the spreadsheet automatically to be saved for later usage (a snapshot of the database if you will).
Thanks for any input on this one.
Currently I'm trying to use it, and if the Query I'm pulling from is small (1k records or less), it functions just fine (although a little sluggish towards the end), but when I go over 3k records, it not only comes to a crawl, but eventually runs itself out of resources.
I was wondering if anyone has ran into this issue in the past, and if a solution was found, or a better way to implement this (such as exporting to a flat file instead, which is the last resort at this time).
For a more precise explaination, I'm running a query against our database, and using those fields (some with calculations) to populate an Excel spreadsheet (via Active X) and the program then exports the spreadsheet automatically to be saved for later usage (a snapshot of the database if you will).
Thanks for any input on this one.