Error 70 (Permission denied) deleting remotely linked word.doc in unbound object frame

  • Thread starter Thread starter Mike Watson
  • Start date Start date
M

Mike Watson

I've got an unbound object frame in an Access 2000 form. I keep the
full file paths of word docs in a table. The table is in an Access
database on a remote file share. The docs are in a remote file share.

When the user navigates to a rec in table the On Current event of the
form sets the frame to the current word document:

Dim ole As ObjectFrame

If Not IsNull(Me!txtPrestazioneID) Then
Set ole = Me!oleLettera
With ole
.SourceDoc = Me!txtFilePath
.Action = acOLECreateLink
End With
End If

If the user deletes the rec I try to first try to unlink the doc from
the frame and delete the file:

Set ole = Me!oleLettera
With ole
.SourceDoc = ""
.Action = acOLEDelete
End With

Kill Me!txtFilePath


The Kill statement provokes Error 70, Permission denied.

Can anyone help?
 
---------- [email protected] (Mike Watson) said:
I've got an unbound object frame in an Access 2000 form. I keep the
full file paths of word docs in a table. The table is in an Access
database on a remote file share. The docs are in a remote file share.
If the user deletes the rec I try to first try to unlink the doc from
the frame and delete the file:

Set ole = Me!oleLettera
With ole
.SourceDoc = ""
.Action = acOLEDelete
End With

Kill Me!txtFilePath

The Kill statement provokes Error 70, Permission denied.

Mike,

are you sure you have delete permission for the remote file share
folder?

Best regards
Emilia

Emilia Maxim
PC-SoftwareService, Stuttgart
http://www.maxim-software-service.de
 
Back
Top