Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

You entered an expression that has an invalid reference to the property FileSearch

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
M Skabialka - 28 Apr 2008 19:58 GMT
Many years ago I downloaded a sample database written by Arvin Meyer that
was a Document Manager.  I modified it quite a bit, adding keywords so
people could narrow their searches for files, but left the original code
where it searches for all files in a selected folder and sub-folders as it
was.  There was also a feature to look for files that had been deleted.  I
upgraded it from older versions through Office 2003, then tried to run it
today in Access 2007 and the function looking for deleted files errored out
saying:
You entered an expression that has an invalid reference to the property
FileSearch.
The code seems to get stuck on
Set fs = Application.FileSearch

and is used for this:
   If Len(Dir(rs!FilePath & rs!FileName)) = 0 Then          ' the file
isn't there
       rs.Edit
       rs!FileMoved = True
       rs.Update
   End If

It seems that Access 2007 no longer supports Application.FileSearch.
What is the work-around, or new code to do this?
Thanks,
Mich
Jeanette Cunningham - 28 Apr 2008 23:19 GMT
Mich,
find out about File Search for A2007 by typing the word FileSearch in the
immediate window and pressing F1.
Do the same for Application.
Hopefully that will give any new information about how to use those methods
in A2007.
If no joy with this approach, download a new copy of Arvin's sample and use
the common File/Open/Save api as used in Arvin's code.

Jeanette Cunningham

> Many years ago I downloaded a sample database written by Arvin Meyer that
> was a Document Manager.  I modified it quite a bit, adding keywords so
[quoted text clipped - 21 lines]
> Thanks,
> Mich
M Skabialka - 30 Apr 2008 15:02 GMT
As it turns out the code was unused in the module, and now I am not even
sure it was from his original database as I had modified it a lot..
Set fs = Application.FileSearch
was in the code, but fs never used.  I deleted it and the rest of the code
worked fine.  I wasn't able to find the new copy of the sample database on
Arvin's site - looking in the wrong place probably...!
Thanks - Mich

> Mich,
> find out about File Search for A2007 by typing the word FileSearch in the
[quoted text clipped - 32 lines]
>> Thanks,
>> Mich
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.