Access开发培训
网站公告
·Access专家课堂QQ群号:151711184    ·Access快速开发平台下载地址及教程    ·欢迎加入Access专家课堂微信群!    ·如何快速搜索本站文章|示例|资料    
您的位置: 首页 > 技术文章 > Access开发平台

通过代码重新引用access开发平台代码库acchelp.umv文件

时 间:2010-08-21 00:00:00
作 者:jlbaccess   ID:4396  城市:无锡
摘 要:acchelp.umv
正 文:

用Access开发平台时会遇到如下图的错误:↓

原因是移动了程序文件夹 代码库文件引用地址被移了位置,解决方法是重新引用新地址里面的代码库文件acchelp.umv,但每次手工引用不方便。我在登录界面上加了个选项”重置模块“


代码如下:

Private Sub REF_Acchelp()                                                                         
    On Error Resume Next                                                                          
    Dim REFE As Reference                                                                         
    Dim strFileName As String                                                                      
    Dim REF As String                                                                              

    Set REFE = Application.References![Microsoft Access Help]                                       
    REF = REFE.Name                                                                                
    Application.References.Remove REFE                                                             
  
    strFileName = CurrentProject.Path & "\Acchelp.umv"                                             
    Set REFE = Application.References.AddFromFile(strFileName)                                      
    MsgBox REFE.Name & "重新引用完毕"                                                           
End Sub



Access快速开发平台QQ群 (群号:321554481)       Access源码网店

常见问答:

技术分类:

相关资源:

专栏作家

关于我们 | 服务条款 | 在线投稿 | 友情链接 | 网站统计 | 网站帮助