Filesearch in Access 2007 Beta

G

Guest

Hi all,

Some code that I wrote in ACC2003 using the FileSearch object does not work
in the 2007 Beta. I have read that the new object model has "hidden" this
object (though I'm not sure what that means precisely). At any rate the
FileSearch object has ceased to function.

Is anyone aware of this issue and/or a work-around to using the FileSearch
object to getting a list of file names from a specified path?

Many thanks,

Tim
 
G

Guest

Hi Tim,

For whatever reason (?), Microsoft choose to remove FileSearch from Access
2007. If you are searching just one folder, you should be able to use the DIR
function. If you are searching a specified path and all sub-directories, then
you'll likely need to substitute an API method. So far, I know of only one
document, written by Access MVP Doug Steele, that shows how to do this, but
it is not free. I think that you can purchase just the given issue, without
having to have a full subscription:

http://advisor.com/doc/16279

You might try searching for information on the FindFirstFile, FindNextFile
and FindClose API functions, but I suspect that your time will be better
spent by simply contacting Access Advisor and purchasing this issue.


Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
 
G

Guest

Thanks for the helpful information. I'm sorry to lose FileSearch, but thanks
to you I can work around it.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top