在多个Access数据库使用一个集中的VBA模块 [英] Using a centralized VBA module in multiple Access databases

查看:425
本文介绍了在多个Access数据库使用一个集中的VBA模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经投入了负责的50 + Access数据库(.MDB的和.ACCDB的多变版本)S周围的Intranet $ P $垫,我需要添加一些VBA函数(完全相同的code)在几乎所有的人。我希望它可以通过从每个数据库的引用集中的VBA模块来完成,因为我真的想做出改变下来那些在每个数据库中自动复制的道路的能力。这也将是一个奖金,如果在中央数据库的任何其他引用可以保持不变,所以我不会去管理他们的个人也是如此。

I've been put in charge of 50+ Access databases (.mdb's and .accdb's of varied versions) spread around an intranet, and I need to add a few VBA functions (the exact same code) to almost all of them. I'm hoping it can be accomplished by creating a reference from each database to a centralized VBA module, as I'd really like the ability to make changes down the road that are automatically replicated in every database. It would also be a bonus if any additional references in the central db could be kept intact so I wouldn't have to manage them individually as well.

我是pretty的新VBA编程(虽然我是一个PHP毫无价值年),并且已经有一个很难想出合适的语言来搜索这个特殊的问题。我认为(从我至今读),我可能需要的Visual Studio编译一个DLL来引用,但我希望把一切都简单,包含的访问如果可能的话,特别是因为我们没有VS许可证。

I'm pretty new to VBA programming (although I've been a PHP junky for years), and have been having a hard time coming up with the right words to search for this particular issue. I think (from what I've read so far) that I might need Visual Studio to compile a DLL to reference, but I'd like to keep everything simple and contained within Access if possible, especially since we don't have a VS license.

谢谢,任何指针将是非常美联社preciated!

Thanks, any pointers would be much appreciated!

推荐答案

不要担心,这是很简单的。

Don't worry, it's quite simple.

  1. 请你的帮手数据库。摆在那里的几个步骤。
  2. 在您的客户数据库,打开VBA编辑器
  3. 转到工具 - >引用。浏览并选择你的助手数据库。
  4. 完成!您现在可以使用你的助手数据库中的所有功能,整个客户端数据库。

所以...没有.dll文件担心。没有Visual Studio的需要。

So... no .dll files to worry about. No Visual Studio needed.

这篇关于在多个Access数据库使用一个集中的VBA模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆