Method for linking Excel with ASP

zhaozj2021-02-16  57

<% DIM connxls, connStrxls

Connstrxls = "dbq = d: /newexcel.xls; defaultdir =; driver = {Microsoft Excel Driver (* .xls)};

SET CONNXLS = Server.createObject ("AdoDb.Connection")

Connxls.open Connstrxls

Set Rsxls = Server.createObject ("AdoDb.Recordset")

SQLXLS = "SELECT *" "

%>

Note: Writing and Connection Access is basically the same, different, when calling a worksheet, you cannot use the table name, the work name is added, and "[]" is enclosed.

转载请注明原文地址:https://www.9cbs.com/read-18927.html

New Post(0)