I am trying to run a MSQuery using VBA code in Excel 2000.
I use the query to access our informix database and return data into Excel.
I need to run the query in a for/next loop to return data based on a range of cells. The data returned is then copied to the appropriate cells in the worksheet...
You need to put the prompt in square brackets in the criteria section of the query (if using Access).
eg. [Please input the date.]
(In Microsoft Query in Excel the prompt goes in the value section)
When you run the query it will prompt for the date.
Hope this helps
How can I run a microsoft query in an excel 2000 application using VBA coding.
Looked in various books found no answer.
Tried to record a macro, actually recorded no instance of the microsoft query actions.
Desperately need some guidance.
Thanks in advance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.