B
Bill Sturdevant
I am using a query to import only the usable records in an
excel file:
SELECT
MyKeyCol, MyDataCol
INTO
MyImportTable
FROM
[Excel 8.0;Database=C:\MyWorkbook.xls].[MySheet$]
WHERE
MyKeyCol IS NOT NULL
;
When I execute it, if the file specified is already open
by Excel, the query just sits there. How can I detect
that the file is open and throw up a message to go close
it?
excel file:
SELECT
MyKeyCol, MyDataCol
INTO
MyImportTable
FROM
[Excel 8.0;Database=C:\MyWorkbook.xls].[MySheet$]
WHERE
MyKeyCol IS NOT NULL
;
When I execute it, if the file specified is already open
by Excel, the query just sits there. How can I detect
that the file is open and throw up a message to go close
it?