Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Excel Pivot update from Access

Howdy,

I have a workbook with one pivot table created from an
Access DB. I would like to share the workbook, but find
that other users have to navigate to the database in order
to refresh data. I thought the issue was around the query
file, and have written VBA code to look for the query file
in the "C:\Documents and Settings\username\Application
Data\Microsoft\Queries\Query_name.dqy" and put a copy there
is one does not exist; but that does not seem to address
the issue. In fact, if I refresh the data on another users
computer and navigate to the database (which maps the
drive), the query file is not apparantly needed.

I would rather point to the \\server\path versus having
manually point to the file and mapping the drive. What
would the VBA code look like to accomplish this?

What is the purpose of the query file?

TIA
regards,
Tim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel Pivot update from Access


there's no need to save the query
probably better to just keep it in the excel file.

editing the connection string of the querytable
may be a bit of a hassle..
but via VBA it IS accessable.
(a normal albeit delimited string.

you dont mention excel version:

for xl97 you can make a DSNless connect string
to avoid have to use the USERS ODBC files.

in newer version you can just enter a normal ado connect string

I suggest visiting www.able-consulting.com/ADO_Conn.htm
to get all the syntax ok.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


tbieri wrote :

Howdy,

I have a workbook with one pivot table created from an
Access DB. I would like to share the workbook, but find
that other users have to navigate to the database in order
to refresh data. I thought the issue was around the query
file, and have written VBA code to look for the query file
in the "C:\Documents and Settings\username\Application
Data\Microsoft\Queries\Query_name.dqy" and put a copy there
is one does not exist; but that does not seem to address
the issue. In fact, if I refresh the data on another users
computer and navigate to the database (which maps the
drive), the query file is not apparantly needed.

I would rather point to the \\server\path versus having
manually point to the file and mapping the drive. What
would the VBA code look like to accomplish this?

What is the purpose of the query file?

TIA
regards,
Tim


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
Can Excel and access update each other like a two way connection CmK Excel Discussion (Misc queries) 0 February 23rd 07 01:01 PM
excel access will not update time erique Excel Worksheet Functions 0 August 9th 06 05:25 AM
Excel update from Access Sharon A Excel Discussion (Misc queries) 0 June 14th 06 04:35 PM
Automatic Update from Access to EXcel Jay Excel Discussion (Misc queries) 0 February 11th 06 07:01 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM


All times are GMT +1. The time now is 12:33 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"