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: 2
Default Change SELECT FROM When Using Excel to Query Excel

Hi Everyone,

I am creating an excel workbook that I would like to distribute to others.
This workbook uses another excel workbook as the data source. Currently, the
select statement looks like this:

SELECT [everything$].ID, [everything$].UID, ...
FROM `C:\path\export`.[everything$] [everything$]

What I would like to accomplish is remove the "C:\path" part and have the
query look for the data store in the same directory as the workbook. This
should allow me to zip up the file and the data store and distribute it to
others with the instructions to just overwrite the the data store with more
current information.

I have changed the FROM line to read:
FROM `export`.[everything$] [everything$]

and I get an error: Could not add the table '`export`.[everything$]'.

Is there a graceful way to accomplish this? My backup plan is to just force
the users to use a hard-coded directory (small user community), but I'd like
to shoot for something a little bit more flexible.

Thanks in advance!
 
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
Fields change order from MS Query to Excel maryj Excel Discussion (Misc queries) 3 January 31st 07 11:28 PM
select database file path location for excel query GerryE Excel Programming 3 July 12th 06 01:23 AM
Excel MS Query multiple select statements Revenger Excel Discussion (Misc queries) 3 May 12th 06 12:32 PM
How do I select on a SQL Datetime field in Excel Query? Smorgan Excel Programming 1 October 15th 04 03:25 AM
CHANGE QUERY SQL CUBE FROM EXCEL Juanjo Excel Programming 0 February 4th 04 05:19 PM


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