A
Arvi Laanemets
Hi
I have an Excel workbook where dates, started from 01.01.2003 and up to some
year in future (2011 at moment), along with some other information (i.e.
workday/weekend/holiday, working hours etc.), are listed.
This table is read into another workbook, using ODBC query. But the problem
is, that I don't need all those future dates. I can't use any functions
exept MIN, MAX, SUM and COUNT in query from Excel files, but is there a way
to pass a name as parameter. P.e. I define a name:
CurrDat=TODAY()
and use it in query's WHERE condition, like
.... WHERE MyTable.Datefield Is Not Null And MyTable.Datefield<CurrDat+100...
(this syntax didn't wok of-course)
I have an Excel workbook where dates, started from 01.01.2003 and up to some
year in future (2011 at moment), along with some other information (i.e.
workday/weekend/holiday, working hours etc.), are listed.
This table is read into another workbook, using ODBC query. But the problem
is, that I don't need all those future dates. I can't use any functions
exept MIN, MAX, SUM and COUNT in query from Excel files, but is there a way
to pass a name as parameter. P.e. I define a name:
CurrDat=TODAY()
and use it in query's WHERE condition, like
.... WHERE MyTable.Datefield Is Not Null And MyTable.Datefield<CurrDat+100...
(this syntax didn't wok of-course)