本帖最后由 chzj589 于 2017-6-27 20:39 编辑
回复 25# kk_lee69
$read1 = '000'
$addfld = ObjCreate("ADODB.Connection")
$addfld.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $mdb_data_path & ";Jet Oledb:Database Password=" & $mdb_data_pwd)
$addfld.execute("update " & $tblname & " set 标题='" & $read1 & "' WHERE id=1")
$addfld.close
这样也可以
$conn = ObjCreate("ADODB.Connection")
$RS = ObjCreate("ADODB.Recordset")
$conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $mdb_data_path & ";Jet Oledb:Database Password=" & $mdb_data_pwd)
$RS.ActiveConnection = $conn;好像是主連接,這個好像比較重要
$conn.Execute("update " & $tblname & " SET 标题 ='222' WHERE ID=1")
$conn.close
|