Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MS Query in VBA

I have a set of VBA code to create a pivot table using the
data from MS ACCESS. I am using ODBC to connect with MS
ACCESS. This set of code is working good in MS Office
2002 and now I have changed the Office version to MS
Office 2003. When the upgrade is done, the
PivotTableWizard function in the VBA is not working well.
The message said that waiting for the MSQuery to response,
however, this is waiting forever. Does anyone know that
there is any new version of the MSQuery which come along
with the MS Office2003?

The problem coding is found as the following:

ActiveSheet.PivotTableWizard _
SourceType:=xlExternal, _
SourceData:=Array("Select * from " & dbsource), _
TableDestination:="", _
TableName:="Pivot", _
Connection:="ODBC;DSN=MS Access for
Database;DBQ=c:\database.mdb;", _
OptimizeCache:=True



Thanks in advance for any advice.



Reply
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
Import New Database Query (Union Query) in Spreadsheet klock Excel Discussion (Misc queries) 2 September 24th 09 01:30 AM
Use MS Query to query data within the current work book Steve Kesler Excel Discussion (Misc queries) 0 August 6th 09 05:22 PM
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM


All times are GMT +1. The time now is 10:14 AM.

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

About Us

"It's about Microsoft Excel"