Search SubDirectory VBA

jamesdpmullan

Registered User.
Local time
Today, 09:45
Joined
Oct 21, 2013
Messages
24
Hi,

Im 2 years into my database however this is really getting to me! :mad:

Im trying to find and open a folder based on a text box. The problem is folder could be in many sub folders which is hold on our J:\ drive.

To further complicate, the folder i am searching may not be exactly as the text box states.

EG. Text box could say 123456 however the folder could be called M123456 etc.

How do i locate a folder or subfolder and open it based on part of a text box

Many thanks for your help!
 
Perhaps you should sort out your data. There could be more than 1 folder matching "123456". What do you do in that case?
 
you need to store the full path to the file (or a relative path based on the location of the active database)
 

Users who are viewing this thread

Back
Top Bottom