您的位置:程序门 -> vb -> vba



新年快乐!这个问题有点急,高手请指教!


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


新年快乐!这个问题有点急,高手请指教!
发表于:2008-02-12 10:15:20 楼主
别人做的vba,在我的电脑上打开access数据库后,运行窗体时提示下面错误:
visual   basic   for   applications   (vba)   encountered   a   problem   while   attempting   to   access   a   property   or   method.   the   problem   may   be   one   of   the   following:
·a   reference   is   missing.
·for   help   restoring   missing   references,   see   the   microsoft   knowledge   base   article   283806.
·an   expression   is   misspelled.
·check   all   expressions   used   in   event   properties   for   correct   spelling.
·a   user-defined   function   is   declared   as   a   sub   or   as   a   private   function   in   a   module.
·expressions   can   resolve   a   user-defined   function   only   if   the   function   is   declared   as   one   of   the   following:
·a   public   function   in   a   module
·a   public   or   private   function   in   a   code   module   of   the   current   form   or   report
·security   in   access   is   set   to   medium   or   high   and   the   microsoft   jet   4.0   sp8   update   is   not   installed.
·a   more   recent   verion   of   jet   4.0   must   be   installed   for   access   to   function   properly   when   security   is   set   to   medium   or   high.   to   obtain   the   latest   version   of   microsoft   jet,   go   to   windows   update.

引用里我也看过了,没有missing的项
%system32%下stdole2.tlb和其他两个ias*.dll也是ok的。
但还是不行,请指教,谢谢先。
发表于:2008-02-17 12:48:001楼 得分:0
安装mdac2.6以上版本试一试
发表于:2008-02-17 13:13:272楼 得分:0
估计是access版本的问题,换成高一点的版本试试
发表于:2008-02-22 14:23:283楼 得分:0
肯定是版本的问题,重新把组件注册,再引用一下。估计你机器里版本过多造成的。


快速检索

最新资讯
热门点击