the886 发表于 2010-7-4 12:31:42

怎么判断mdb数据库的一个表是否存在?

本帖最后由 the886 于 2010-7-4 13:01 编辑

$RS.Open   ("Select   "&$T   &   "   From   "   &   $tblname   )

$tblname   如果这个不存在就会出错!请求失败

pusofalse 发表于 2010-7-4 12:55:36

想知道吗?把错字改正了就跟你说。

the886 发表于 2010-7-4 13:02:29

回复 2# pusofalse


用五笔的,不好意思,已改正

thinking 发表于 2010-7-4 13:23:09

$oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") ;拦截com对像错误

;你的数据库读写代码

Func MyErrFunc()
        $HexNumber = Hex($oMyError.number, 8)
        MsgBox(0, "", "We intercepted a COM Error !" & @CRLF & _
                        "Number is: " & $HexNumber & @CRLF & _
                        "Windescription is: " & $oMyError.windescription)

        $g_eventerror = 1 ; 检查函数返回
EndFunc   ;==>MyErrFunc

pusofalse 发表于 2010-7-4 14:03:44

看下Access.au3中的_accessListTables函数:
http://www.autoitx.com/forum.php?mod=viewthread&tid=4787&highlight=access
枚举mdb的所有表。
页: [1]
查看完整版本: 怎么判断mdb数据库的一个表是否存在?