[AccessD] Find File in Folder and in Subfolder

Dan Waters dwaters at usinternet.com
Mon Oct 31 09:49:08 CST 2005


Hi Bobby,

You're right - I do know the top folder.  

Dan

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid
Sent: Monday, October 31, 2005 9:33 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Find File in Folder and in Subfolder

Would you not need to know the beginning path of the where to start the
search?  If you are searching a whole drive, then you would just make the
starting path be "c:\" (or whatever drive it is on.  I would think that FSO
would do fine.

You could use DIR, but you would have to create a recursive function to
search the directory tree.

Bobby

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters
Sent: Monday, October 31, 2005 10:05 AM
To: AccessD
Subject: [AccessD] Find File in Folder and in Subfolder


I have a customer who wants their application to be able to find a file in a
folder or subfolder based on the entry in a text box.  The data entered is a
part number, and the file to be found is the drawing for that part.

However, their file structure is inconsistent.  I've looked at FSO, but that
requires that the path to a file be known.  DIR is a help with the
file/folders at the first level.  

Is there something that will search all the levels within a folder for a
specific file?

Thanks!
Dan Waters

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list