SELECT *
FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=C:\DelphiTest\ExcelText\StandarExcel.xls;User ID=Admin;Password=;Extended properties=Excel 8.0')...[sheet1$]很奇怪的!
用的BDE为什么在SQL Explorer中运行没有问题!
放在Tquery中就报错.
报错如下:
Invalid use of keyword.Token:8.0')
Line Number:2'.Process stopped.
谢谢各位大虾.
FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=C:\DelphiTest\ExcelText\StandarExcel.xls;User ID=Admin;Password=;Extended properties=Excel 8.0')...[sheet1$]很奇怪的!
用的BDE为什么在SQL Explorer中运行没有问题!
放在Tquery中就报错.
报错如下:
Invalid use of keyword.Token:8.0')
Line Number:2'.Process stopped.
谢谢各位大虾.
你在delphi 6 或 7 中试试