Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have several spreadsheets in the same folder that are consolidated into one spreadsheet using the MS Query feature in Excel. I have reproduced a part of the query below. The 'FROM' line states an absolute reference: J:\Budget\filename.xls; is there a way to tell SQL that the file it is looking for is in the base (current) folder so I can simply state the file name without the path. SELECT tblOwnTax.CODE, LEFT(Description,18), MID(DESCRIPTION,30,30), tblOwnTax.PYR3, tblOwnTax.PYR2, tblOwnTax.PYR1, tblOwnTax.CYR, tblOwnTax.CYR1, tblOwnTax.CYR2, tblOwnTax.CYR3, tblOwnTax.CYR4, tblOwnTax.CYR5 FROM `J:\Budget\GOR_Revenue`.tblOwnTax tblOwnTax WHERE (tblOwnTax.CODE Like '%-GO%') Union SELECT tblPIPS.CODE, LEFT(Description,18), MID(DESCRIPTION,30,30), tblPIPS.PYR3, tblPIPS.PYR2, tblPIPS.PYR1, tblPIPS.CYR, tblPIPS.CYR1, tblPIPS.CYR2, tblPIPS.CYR3, tblPIPS.CYR4, tblPIPS.CYR5 FROM `J:\Budget\GOR_Revenue`.tblPIPS tblPIPS WHERE (tblPIPS.CODE Like '%-GO%') Many thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Relative Link remembers absolute path?? | Excel Worksheet Functions | |||
Relative vs. Absolute Path Names for linked cell data | Excel Discussion (Misc queries) | |||
Using Relative path for XML data file? | Charts and Charting in Excel | |||
how to change absolute path to relative path | Excel Worksheet Functions | |||
Absolute vs Relative path | Excel Discussion (Misc queries) |