How do I find the current path (directory) of a MS Access database?

后端 未结 1 792
醉梦人生
醉梦人生 2021-02-19 00:46

I am writing VBA within my Access database and I need to reference the containing directory of this database. This path could change since I will be moving the database around.<

相关标签:
1条回答
  • 2021-02-19 01:09

    You will want to use the following code:

    CurrentProject.Path
    

    This will return a string representing the file path of the current directory.

    0 讨论(0)
提交回复
热议问题