$dbname = "test.mdb"
$tblname = "测试表"
$fldname = "测试字段"
$format = "int"
$sData = "123456"
$T = "*"
;$newMdb = ObjCreate("ADOX.Catalog")
;$newMdb.Create("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)
;$newmdb.ActiveConnection.Close
$addtbl = ObjCreate("ADODB.Connection")
$addTbl.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)
$addtbl.close
经测试,对象变量是获取成功了,但 open create 的时候都会出错。
错误代码:
E:\??????\lhf\visa\test_20.au3 (14) : ==> ??????(?????).:
$addTbl.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)
$addTbl.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)^ ERROR
大家谁能帮帮我?感谢! |