本帖最后由 axis001 于 2011-2-28 09:44 编辑
各位老大:请看我的这段:#Include <date.au3>
#include <WindowsConstants.au3>
$datename="time.mdb"
$time=_Now()
MsgBox(0,"",$time)
$addfld = ObjCreate("ADODB.Connection")
$RS = ObjCreate("ADODB.Recordset")
$addfld.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & $datename )
$RS.ActiveConnection = $addfld
$addfld.Execute("insert into time (time) values('"&$time&"')")
$addfld.close
就算在数据库文件中把类型改为文本也出错,
$addfld.Execute("insert into time (time) values('"&$time&"')")^ ERROR,
不知道为何?迷惑呀! |