之前好好的,今天发现我常用的几个 xlsm文件都报这个。
及时我新建一个文件敲入以下代码也报毒。
Sub 更新 (strProjectName As String, strCompany As String, strVer As String)
Set conn = CreateObject("ADODB.Connection")
strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= base.mdb;Persist Security Info=False;Jet OLEDB:Database Password=1"
conn.ConnectionTimeout = 3000
conn.Open strConn
Set rs = CreateObject("ADODB.Recordset")
strSQL = "SELECT top 1 id,info1,info2,info3,info4 FROM infotable"
rs.Open strSQL, conn, 2, 2
rs("info1") = strProjectName
rs("info2") = strCompany
rs("info3") = "ed"
rs("info4") = Left(strVer & vbCrLf & rs("info4"), 50)
rs.Update
rs.Close
conn.Close
Set rs = Nothing
Set conn = Nothing
End Sub
|