I searched forum and found this example back in 2000 where for an excel database you use back quotes see `sheet1$` and the use of the $.
But 2000 was a long time ago. When I execute I get "too few parameters"
Is my information out of date? This is excel 2007. I have .dsn.
the statement worked fine for an access sql (no back quotes used there)
sSQLStatement = "SELECT date, description " + _
"FROM `sheet1$` " + _
"WHERE description like '" + sNameSearch + "'" + _ 'note how this looks
"order by date "
Thanks
But 2000 was a long time ago. When I execute I get "too few parameters"
Is my information out of date? This is excel 2007. I have .dsn.
the statement worked fine for an access sql (no back quotes used there)
sSQLStatement = "SELECT date, description " + _
"FROM `sheet1$` " + _
"WHERE description like '" + sNameSearch + "'" + _ 'note how this looks
"order by date "
Thanks
Comment