How do I search for files in subdirectories?

J

Joe Leon

I have an access table with a file names of images (*.bmp or *.jpg) in a
column.

I want to use the file name from the table and search for it in
subdirectories so that I can display the image.

Any help will be greatly appreciated.

Thanks...
 
G

Guest

Hi,
how are you planning to display the images? with an image
control? if so then what you need in your table are the
file paths to the images not just their names.
to display the image set the image control's picture
property to the file path of the image you want displayed.
Post back if you have more questions or to clarify if i
got confused.
 
J

Joe Leon

I don't want to have to add a static path to the record since subdirectories
can be added with images. Can something in the lines of "FileSearch" be used?
 
G

Guest

hi,
sorry to be so long getting back. Accounting lost a half
million $ and i had to find it.
I am still assuming that you will be useing an image
control to display the image.
the image control will still need the full file path
regarless.
even if you did use a FileSearch you would still need code
to to set the file path in the image control's picture
property. and i am not aware if you could use a file
search and incorporate that into the code.
 
Top