ACC97: Sample Procedure to Find the Location(s) of a FileLast reviewed: July 10, 1997Article ID: Q171193 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multi-user skills. This article describes a sample user-defined function that uses the FileSearch object contained in the Application object to locate a file on a particular drive. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access 97" manual.
MORE INFORMATIONThe LocateFile() function takes the file you are looking for as a string argument and returns all locations of that file. To create the function, follow these steps:
REFERENCESFor more information about using Visual Basic for Applications code to search for files, search the Help Index for "FileSearch object," and then click FoundFiles in the object tree at the top of the FileSearch Object Help topic. |
Keywords : kbcode MdlGnrl
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |