Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access query in VBA
Hello !
I'm currently developping an Excel-Access application. I would like, for my import/export function in VBA, to use pre-saved access query in my vba code Is it possible to do so? How? Many thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access query in VBA
Laurent
Certainly It's easier to set up if you record yourself (ToolsMacros...Record new macro) doing the following DataExternal DataNew Database Query... Select MS Access as the source Navigate to the databaseSelect the queryComplete the rest of the wizardReturn Data to Excel. If you then press Alt+F11, you will find the code written for you in 'Module1' -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England HIS "Laurent M" wrote in message ... Hello ! I'm currently developping an Excel-Access application. I would like, for my import/export function in VBA, to use pre-saved access query in my vba code Is it possible to do so? How? Many thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access query in VBA
thanks nick your answer seems nice, but i don't have time to test it yet
jim i dont 't get where you specify the access query, i'm actually quite a beginner in vba |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access query in VBA
Stic with Nick's suggestion. Mine is a little more advanced in that you dont
specify the query but rather the SQL statement that generates the query results... "Laurent M" wrote: thanks nick your answer seems nice, but i don't have time to test it yet jim i dont 't get where you specify the access query, i'm actually quite a beginner in vba |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Query from Access into Excel cause Access to go to read only | Excel Discussion (Misc queries) | |||
Can I use MS Query in Excel like an Append Query in Access | Excel Discussion (Misc queries) | |||
Microsoft Query rejects "nz" function in Access Query | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) | |||
Access query vs. Excel query | Excel Programming |