Relative file references

前端 未结 3 1428
深忆病人
深忆病人 2021-01-12 17:02

In have built a couple of mda library files which I am then referencing from my main Access application (i.e. using Tools -> References from within the IDE).

Is ther

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 17:50

    To get the file path for the access application

    CurrentProject.Path & "\"
    

    Then just add the other files into the same directory and get them by name. i.e.

    Dim filepath As String
    filepath = CurrentProject.Path & "\name_of_file.mda"
    

提交回复
热议问题