Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can I execute an Access query from an Excel Macro and bring back the data
into the spreadsheet? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The best way to start is to record a macro while setting up the query manually.
From Worksheet menu 1) Tools - Macro - Record new macro 2) Data - Import External Data - New Database Query 3) Tools - Macro - Stop Recording. "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
technically this built into xl via microsoft query. 2003 on the menu bar....datainport external datanew database query set access db as the data source. scroll to your access db. when the table source apears, scroll down to the query and pull all of the queries fields into MSQ then just follow the rest of the wizzard. regards FSt1 "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
if you have 2007 see this site http://office.microsoft.com/en-us/he...491511033.aspx regards FSt1 "FSt1" wrote: hi, technically this built into xl via microsoft query. 2003 on the menu bar....datainport external datanew database query set access db as the data source. scroll to your access db. when the table source apears, scroll down to the query and pull all of the queries fields into MSQ then just follow the rest of the wizzard. regards FSt1 "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have attempted to use MS Query in the past with XL97, XL2000, and XL2002
only to run into Excel crashing on account that MS Query uses ADO, and within Excel, there is a documented issue with memory leaks when using ADO. I don't know if this issue has been fixed in XL2007 or not, but it is documented for prior versions. -- Thanks, Ronald R. Dodge, Jr. Production Statistician Master MOUS 2000 "FSt1" wrote in message ... hi, technically this built into xl via microsoft query. 2003 on the menu bar....datainport external datanew database query set access db as the data source. scroll to your access db. when the table source apears, scroll down to the query and pull all of the queries fields into MSQ then just follow the rest of the wizzard. regards FSt1 "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
i've been using MSQ since xl97 and have had no such issues. regards FSt1 "Ronald R. Dodge, Jr." wrote: I have attempted to use MS Query in the past with XL97, XL2000, and XL2002 only to run into Excel crashing on account that MS Query uses ADO, and within Excel, there is a documented issue with memory leaks when using ADO. I don't know if this issue has been fixed in XL2007 or not, but it is documented for prior versions. -- Thanks, Ronald R. Dodge, Jr. Production Statistician Master MOUS 2000 "FSt1" wrote in message ... hi, technically this built into xl via microsoft query. 2003 on the menu bar....datainport external datanew database query set access db as the data source. scroll to your access db. when the table source apears, scroll down to the query and pull all of the queries fields into MSQ then just follow the rest of the wizzard. regards FSt1 "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's the link to the issue that I have faced.
http://support.microsoft.com/kb/319998 -- Thanks, Ronald R. Dodge, Jr. Production Statistician Master MOUS 2000 "FSt1" wrote in message ... hi i've been using MSQ since xl97 and have had no such issues. regards FSt1 "Ronald R. Dodge, Jr." wrote: I have attempted to use MS Query in the past with XL97, XL2000, and XL2002 only to run into Excel crashing on account that MS Query uses ADO, and within Excel, there is a documented issue with memory leaks when using ADO. I don't know if this issue has been fixed in XL2007 or not, but it is documented for prior versions. -- Thanks, Ronald R. Dodge, Jr. Production Statistician Master MOUS 2000 "FSt1" wrote in message ... hi, technically this built into xl via microsoft query. 2003 on the menu bar....datainport external datanew database query set access db as the data source. scroll to your access db. when the table source apears, scroll down to the query and pull all of the queries fields into MSQ then just follow the rest of the wizzard. regards FSt1 "Denise" wrote: Can I execute an Access query from an Excel Macro and bring back the data into the spreadsheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
execute a make table query in an access database | Excel Programming | |||
Excel VBA Query Using Access Database Hangs on 2nd Execute | Excel Programming | |||
Execute a query from a macro | Excel Programming | |||
access 97 to excel 97: execute macro automation | Excel Programming | |||
access 97 to excel 97: execute macro automation | Excel Programming |