LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default How to make fetching and displaying of data from dtabase to workbook faster??

I have a small querry:-

I need to get data from the database and display in the excel sheet .
The user might ask for 2 yrs data or some times even more ..therz a
form he fills based on which I querry the database.. I want the
fetching and displaying to take minimal time...

I wanted to know of this two approaches which would be faster...

1. Make a temporary array and while moving through the Recordset data
in the do while loop copy these values into the into this temporary
array . And then later copy the values from this array to the
workbook.. Advantage( I need to only change the display procedure if
client wants te data to be displayed in other format ... need not
meddle with the procedure which fetches the data.. But found this takes
a lot of time...) and array would be a 2 dimensional matrix..

2. Instead of making a temporary array , while looping through the
recordset copy the recordset data into the workbook at the same instant
instaed of copying into temp array and then cal a procedure to copy
this array to the workbook ... Will this approach be faster than the
one mentioned above .. I want it to take less time for dispalying and
fetching.... Plz letme know which is a better approach ..

Kindly let me know any functions or properties like turning the display
alerts to false that can be used for faster execution...


Cheers !!!
Divya..

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can you make this faster? John Excel Programming 2 October 25th 05 08:20 PM
How Can I make excel go faster Jason Zischke Excel Programming 8 March 23rd 05 03:55 PM
make my vba/excel program faster David Lee Excel Programming 0 May 18th 04 06:17 PM
make my vba/excel program faster pikus Excel Programming 0 May 18th 04 04:44 PM
make my VBA program faster Neil[_14_] Excel Programming 2 May 18th 04 04:15 PM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"