ACC2000: How to Retrieve the Path or File Name from the Name Property (209860)
The information in this article applies to:
This article was previously published under Q209860 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SUMMARY
The Database object provided by a Microsoft Data Access Object (DAO) has a Name property. However, this property returns the full path and the file name of the database. To retrieve either the path or the file name separately, you must parse the string returned by the Name property by searching for slash characters ("/").
REFERENCESFor additional information about using Visual Basic for Applications, click the article number below
to view the article in the Microsoft Knowledge Base:
226118 OFF2000: Programming Resources for Visual Basic for Applications
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbinfo KB209860 |
---|
|