Identify the workgroup MDW

≡放荡痞女 提交于 2019-12-08 08:08:09

问题


In Microsoft Access, can you have Visual Basic identify what Workgroup you are using?

I find that new profiles need to be linked to the existing workgroup. Sometimes if the server crashes, Access doesn't find the workgroup and resets to the local workgroup.


回答1:


The DAO.DBEngine object provides SystemDB property. You can retrieve the value of that property from VBA. Here's an example from the Immediate window.

? SystemDB
C:\Users\hans\AppData\Roaming\Microsoft\Access\System.mdw


来源:https://stackoverflow.com/questions/18064762/identify-the-workgroup-mdw

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!