Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2010, 03:29 PM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBA with big data

Hello -- I am going to use VBA to pull a multitude of elements (several hundred) from a pivot table whose data source is a 40meg table in Access. To get the data I will need to re-form the pivot in various ways (probably a hundred.)

Can anyone give me some insight as to whether it would be more efficient to load a pivot cache within Excel and do calcs there (possibly in an array), OR reach into Access via ADO and do the calcs there?

Thanks for your help!

jwk
 
Old January 9th, 2010, 10:21 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

It all depends on the calculation/filter you want to do

If it can be done using some queries you can do that using ADO as the returned result is limited to that critieria

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old January 10th, 2010, 04:42 PM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks...

Thanks for your response; good information.

I will mostly be pulling simple data elements and doing a few simple calculations with these pulled elements. The filters would be maybe five dimensional: Market by Type by Month by Dept by ID, for example.

My question is: is it quicker/more efficient to manipulate a 40M pivot table a couple hundred times in Excel or to do a few hundred relatively simple SQL queries via ADO?

Thanks again --





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel vba: data processing snowman.hk Excel VBA 1 November 6th, 2009 05:56 AM
Use VBA to get data from SQL database kiwidancer Excel VBA 1 September 1st, 2009 11:41 PM
extract data from one big text element JohnBampton XSLT 12 August 23rd, 2009 08:43 AM
Using VBA Code to Move Data Nanette Access VBA 1 November 3rd, 2006 04:16 PM
VBA programming of "Get External Data" John Hollingsworth Excel VBA 2 August 2nd, 2005 10:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.