RosemaryJB
Registered User.
- Local time
- Today, 21:54
- Joined
- Nov 6, 2006
- Messages
- 24
When a user deletes a contact in the application I support I use the following code to delete any associated letters using the following code:
With Application.FileSearch
.NewSearch
.LookIn = PathLiveLetters
.FileName = Contact & "-" & "*"
If .Execute() > 0 Then
PathTmp = PathLiveLetters & Contact & "-" & "*"
Kill PathTmp
End If
End With
This works fine for users on our local network. However Terminal Services users get the error message
2147467259 (80004005). Method 'FileSearch' of object - Application failed.
My technical support thinks this is not a programming problem but with the more limited set of permissions available to TS users (which she doesn't want to change). Can anyone confirm this or suggest a way round?
In the meantime I've inserted a message for TS users asking them to contact me for deletions. Fortunately we don't do many!