Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I record a New Database Query inside excel, and record macro that runs the query as below. How can I run the Sql Command text without running Open File *.dbq ? Workbooks.OpenDatabase Filename:= _ "G:\Help.dqy", CommandText:=Array( _ "SELECT `ADC_Parts$`.Mfg, `ADC_Parts$`.`Part Number` FROM `G:\ADC Parts`.`ADC_Parts$` `ADC_Parts$` WHERE (`ADC_Parts$`.Mfg='ACC') ORDER BY `ADC_Parts$`.`Part Number`" _ ), CommandType:=xlCmdSql -- Thanks & Best Regards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
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) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) | |||
Problem with .Background Query option of ODBC Query | Excel Programming |