Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Query - Where is it???
I wrote a query with import external data and query and
it works fine but I want to now modify it and put it in a loop working for a number of parameters. My first question is: where did it go?? I see a .dsn file and an .iqy file in my data sources but I can find no references to the query in the workbook or anywhere in the vba code. Assuming that the .iqy and .dsn have the details of what is to be queried - where is the link - how do it know (kinda like the Thermos bottle - it keeps hot things hot and cold things cold - how do it know???) ??? And secondly what form should I use to write my query directly into VBA - I certainly know how to write the raw sql but what function should I use. Thanks a lot - I know I am close but I am missing something fundamental here. Dan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Query - Where is it???
Right click on you returned data and select edit = Query.
Turn on the macro recorder and build the query manually to get the code. -- Regards, Tom Ogilvy Dan wrote in message ... I wrote a query with import external data and query and it works fine but I want to now modify it and put it in a loop working for a number of parameters. My first question is: where did it go?? I see a .dsn file and an .iqy file in my data sources but I can find no references to the query in the workbook or anywhere in the vba code. Assuming that the .iqy and .dsn have the details of what is to be queried - where is the link - how do it know (kinda like the Thermos bottle - it keeps hot things hot and cold things cold - how do it know???) ??? And secondly what form should I use to write my query directly into VBA - I certainly know how to write the raw sql but what function should I use. Thanks a lot - I know I am close but I am missing something fundamental here. Dan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Import New Database Query (Union Query) in Spreadsheet | Excel Discussion (Misc queries) | |||
Convert hard coded query criteria to Parameter Query | Excel Discussion (Misc queries) | |||
Excel 2007 / MS Query - editing existing query to another sheet | Excel Discussion (Misc queries) | |||
Importing Data via Web Query - Can values be passed to query? | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |