Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CM CM is offline
external usenet poster
 
Posts: 136
Default Modify a data query ??

Thank you very much for your help.
CM.

"Dick Kusleika" wrote:

CM wrote:
I'm able to create data queries that pull data from a Visual FoxPro table,
but the query ends up with a fixed path to the data.

Is there a way to parameterize the path so the user can provide it in a
cell on the worksheet and the query references that cell for its path to
the data?


CM: No, you can't parameterize the path. You can change the path with VBA,
though. See here

http://www.dicks-clicks.com/excel/Ex...htm#ChangeConn

You could put it in a Worksheet_Change event so that when the user changed
the path in a certain cell, it would update the Connection and CommandText
strings of your external data query.


--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com



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
Help to modify the query? Eric Excel Worksheet Functions 0 March 11th 08 05:54 AM
Modify Recorded SQL Query to "Insert, Delete, Update" MSweetG222 Excel Programming 2 October 25th 05 01:49 AM
Stop to modify the SQL query manually entered into query ! Olivier Rollet Excel Programming 6 November 3rd 04 08:34 AM
Any Idea on how to modify this code relating to query??? hce[_24_] Excel Programming 1 October 14th 04 12:27 PM
Modify Web Query using macros? SPYREN Excel Programming 2 October 11th 04 03:37 PM


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