Article ID: 210613 - Last Review: October 11, 2006 - Revision: 3.2 How to find the location or locations of a file in Microsoft AccessThis article was previously published under Q210613 For a Microsoft Access 97 version of this article,
see
171193
(http://support.microsoft.com/kb/171193/
)
. Advanced: Requires expert coding, interoperability, and multiuser
skills. This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). SUMMARY This article describes how to create a sample user-defined
function that uses the FileSearch object contained in the Application object to locate a file on a particular drive. MORE INFORMATION The LocateFile() function takes the file that you are
looking for as a string argument and returns all locations of that file. To
create this function, follow these steps:
Note: The LocateFile() function does not work properly if your computer runs only the Runtime version of Microsoft Access 2002. REFERENCESFor more information about using Visual Basic for
Applications code tosearch for files, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type filesearch object in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
| Article Translations
|
Back to the top
