想做一个用asp把excel的数据自动转到access的页面,
但连接excel的时候老出错,代码如下:
Dim Conn
conn = "Driver={Microsoft Excel Driver (*.xls)};DBQ=E:\new\test.xls"
Dim ts
Set ts = Server.CreateObject("ADODB.Recordset"
ts.ActiveConnection = conn
ts.Source = "Select * From [gnumber$] ORDER BY 班组 ASC"
ts.CursorType = 0
ts.CursorLocation = 2
ts.LockType = 1
ts.Open()
那位高手指点指点!