Source code for directory search

J

Joseph

I am developing an inventory control system. In the form updating the details
of specific part, I would like to search the system file directory and save
in Parts table, the path (i.e...D:\ICS\drwaing\ test.dwg) of the file
containing the AutoCAD drawing of the part.
Appreciate your help how I can do that.

Thanks.
 
D

Damian S

Hi Joseph,

You can use the Microsoft Common Dialog control to handle this for you...

There are plenty of code examples available for that on the web. google
"microsoft common dialog control example" and you'll find a heap of code
samples to choose from.

Damian.
 
J

John Nurick

Hi Joseph,

Do you want to display a dialog where the user can select a file, or do
you want your code to search the "system file directory" for a file with
a particular name?

If the former, see www.mvps.org/access/api/api0001.htm .
If the latter, maybe the Dir() function is what you need.
 
Top