Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default import data with microsoft query

Hello,
I'd like to retreive data from an external database in excel. To import
those datas, a criteria (a number) is used. So, there are :
1.an ODBC link (Teradata) to a database.
2.an SQL query (external data import - new query).

Excel import the external datas but criteria is coded in the query :
-- extract of the query -----
SELECT DISTINCT ... WHERE .... AND (Task.opportunity_id = '552768' )
-------------------------------
Now, i'd like to replace '552768' by a value find in a cell or asked via the
query (for instance 'input').

Could you help me ?
Tks
Pascal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default import data with microsoft query

http://nickhodge.co.uk/gui/datamenu/...taexamples.htm

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

--
Regards,
Tom Ogilvy


"PaCoCourt" wrote:

Hello,
I'd like to retreive data from an external database in excel. To import
those datas, a criteria (a number) is used. So, there are :
1.an ODBC link (Teradata) to a database.
2.an SQL query (external data import - new query).

Excel import the external datas but criteria is coded in the query :
-- extract of the query -----
SELECT DISTINCT ... WHERE .... AND (Task.opportunity_id = '552768' )
-------------------------------
Now, i'd like to replace '552768' by a value find in a cell or asked via the
query (for instance 'input').

Could you help me ?
Tks
Pascal

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
Data Lost in Microsoft Query Eva Excel Worksheet Functions 0 December 10th 09 05:37 PM
Variable external data through a Microsoft Query Jocular Jock Excel Worksheet Functions 2 October 25th 06 01:43 PM
Microsoft Query: retrieve data by dates Raminhos Excel Programming 1 February 4th 05 05:02 PM
How do I import data from Microsoft Project 2003 to Excel? RgilbertProjMgr Excel Discussion (Misc queries) 3 December 31st 04 01:07 PM
Using Microsoft Query to Extract Data Jim Wallace Excel Programming 1 October 20th 03 11:30 PM


All times are GMT +1. The time now is 11:48 PM.

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"