您的位置:程序门 -> vb -> 基础类



运行时错误"0"什么意思?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


运行时错误'0'什么意思?[已结贴,结贴人:newp]
发表于:2007-05-28 11:02:57 楼主
属于什么类型的错误,可能是什么原因引起的?
发表于:2007-05-28 11:11:221楼 得分:10
代码????
发表于:2007-05-28 11:12:312楼 得分:20
可能是打开了一个并不存在的文件
发表于:2007-05-28 11:48:053楼 得分:20
应该是有什么变量没声明吧
发表于:2007-05-28 13:11:154楼 得分:0
msgbox   "a "
        strmyusername   =   trim(cmbusername.text   &   " ")
        strmyusercode   =   getdmfromxm(strmyusername)
        msgbox   "b "
        if   strmyusername   =   "管理员 "   then
            strmyusercode   =   "0 "
        end   if
        msgbox   "c "
        '检查正确的密码
        if   checkuser(strmyusername,   txtpassword.text)   =   true   then
        msgbox   "d "
                '将代码放在这里传递
                '成功到   calling   函数
                '设置全局变量时最容易的
                strmydwmc   =   struserbmmc
                call   getloginbm
                msgbox   "e "
                if   instr(strcandobmdm,   getdm(cmbbm.text))   <=   0   then
                    msgbox   "f "
                    msgbox   "用户[ "   &   strmyusername   &   "]没有被授权登陆到[ "   &   getmc(cmbbm.text)   &   "]! ",   vbexclamation
                    exit   sub
                end   if
                msgbox   "g "
                savesetting   "temp ",   "部门 ",   cmbbm.text
                savesetting   "temp ",   "用户 ",   cmbusername.text
                loginsucceeded   =   true
                me.hide
        else
                msgbox   "无效的密码,请重试! ",   ,   "登录 "
                txtpassword.setfocus
                sendkeys   "{home}+{end} "
        end   if
发表于:2007-05-28 13:12:465楼 得分:0
会不会是ado2.6不支持access2007?
发表于:2007-05-28 13:13:306楼 得分:0
有的电脑正常
一台电脑装office2007的报错


快速检索

最新资讯
热门点击