The following code works fine in Access 2000/Windows 2000:
With Application.FileSearch
.NewSearch
.LookIn = strMoveFrom
.SearchSubFolders = False
.LastModified = msoLastModifiedToday
.FileType = msoFileTypeAllFiles
.Execute msoSortByFileName
More code ………………..
End With
When I copied the app to a Windows XP Home Edition machine with Access 2002 (SP3) the code does not work. Machine hangs on the .Execute msoSortByFileName line and Ctl/Alt/Del is the only way out. I sent the error data to Microsoft per the popup and the suggestion was to update Office 10. I did this and the same error occurred with no suggested fix the second time.
References set in Access 2002 are:
Visual Basic For Applications
Microsoft Access 10.0 Object Library
Microsoft ActiveX Data Objects 2.1 Library
Microsoft Office 10.0 Object Library
OLE Automation
The only difference I can see is that the Reference to MS Office 9.0 library in Access 2000 is not possible to set in Access 2002 (MSO9.DLL is not available in XP/Access 2002). Setting a reference to MS Office 10 in XP does not solve the problem.
Any insight into this would be greatly appreciated.
Thank you.
With Application.FileSearch
.NewSearch
.LookIn = strMoveFrom
.SearchSubFolders = False
.LastModified = msoLastModifiedToday
.FileType = msoFileTypeAllFiles
.Execute msoSortByFileName
More code ………………..
End With
When I copied the app to a Windows XP Home Edition machine with Access 2002 (SP3) the code does not work. Machine hangs on the .Execute msoSortByFileName line and Ctl/Alt/Del is the only way out. I sent the error data to Microsoft per the popup and the suggestion was to update Office 10. I did this and the same error occurred with no suggested fix the second time.
References set in Access 2002 are:
Visual Basic For Applications
Microsoft Access 10.0 Object Library
Microsoft ActiveX Data Objects 2.1 Library
Microsoft Office 10.0 Object Library
OLE Automation
The only difference I can see is that the Reference to MS Office 9.0 library in Access 2000 is not possible to set in Access 2002 (MSO9.DLL is not available in XP/Access 2002). Setting a reference to MS Office 10 in XP does not solve the problem.
Any insight into this would be greatly appreciated.
Thank you.