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: 287
Default Querytable results into vba Recordset

I wish to use the results of a querytable update in the local worksheet as
the basis for loading up / populating a VBA Recordset WITHOUT needing to
re-hit the database for the information.

I am taking this approach so as to retain visibilty of the raw data and have
it on hand, in entirety, to mannually inspect / analyse if my automated logic
and integrity checks in VBA highlight that there is a need to delve deeper
into the integrity of the data.

There is likely to be great amounts of data in a real-time warehousing
environment so I want to avoid placing extra loads on the database / bandwith.

Here's what I've tried and been stumped at :

The vba refresh :

Worksheets("qryInventoryData").QueryTables(1).Refr esh BackgroundQuery:=False

And here's the failing attempt to populate the VBA recordset :

Set rsData = Worksheets("qryInventoryData").QueryTables(1).Reco rdset

Does anyone think this iss too much to expect ? Is there another way to
skin tis cat ?

Aaron
 
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
Web query results in a recordset? quartz[_2_] Excel Programming 4 March 18th 05 09:11 AM
Add QueryTable in code Jim Hughes Excel Programming 4 March 13th 05 08:28 AM
Can't change name of querytable. Bing Excel Programming 0 March 12th 05 05:57 PM
Type recordset/recordset? FlaviusFlav[_9_] Excel Programming 4 May 24th 04 12:16 PM
Querytable Ben.c Excel Programming 4 December 3rd 03 09:11 AM


All times are GMT +1. The time now is 04:16 PM.

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"