7,785
社区成员




Dim Excel_Dsn As String
Dim Excel_Conn As New ADODB.Connection
Dim Excel_Adodc As New ADODB.Recordset
Dim mySql As String
Dim rs_str As String
Dim FilePath As String
FilePath = App.Path & "\aaa\" & Date & ".xls"
Excel_Dsn = "DRIVER={Microsoft Excel Driver (*.xls)};DSN='';FIRSTROWHASNAMES=1;READONLY=FALSE;CREATE_DB=""" & FilePath & """;DBQ=" & FilePath
Excel_Conn.Open Excel_Dsn
mySql = "select * from [test$] where 网址='" & url & "'"
Excel_Adodc.Open mySql, Excel_Conn, adOpenKeyset, adLockPessimistic
im Excel_Dsn As String
Dim Excel_Conn As New ADODB.Connection
Dim Excel_Adodc As New ADODB.Recordset
Dim mySql As String
Dim rs_str As String
Dim FilePath As String
FilePath = App.Path & "\aaa\" & Date & ".xls"
Excel_Dsn = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & FilePath & ";Extended Properties='Excel 8.0;HDR=Yes'"
Excel_Conn.Open Excel_Dsn
mySql = "select * from [test$] where 网址='" & url & "'"
Excel_Adodc.Open mySql, Excel_Conn, adOpenKeyset, adLockPessimistic