Hello all,
The module below below gives e an error of execution 13, while it worked perfectly in another directory. The error is situated at the level of the line:
We can help me?
Thanks for all
Habiler
The whole module :
The module below below gives e an error of execution 13, while it worked perfectly in another directory. The error is situated at the level of the line:
Code:
If Len(Dir(filePath)) > "" Then
Thanks for all
Habiler
The whole module :
Code:
Private Sub Décision_DblClick(Cancel As Integer)
Dim filePath As String
filePath = "P:\X\Y\Doc" & Me.Decision & ".pdf"
' Debug.Print filePath
' Debug.Print Dir(filePath) ' will print the filename if found, blank line if not found
If Len(Dir(filePath)) > "" Then
Me.tt = filePath
Refresh
Else
Debug.Print filePath
Debug.Print Me.tt
MsgBox "Le fichier" & filePath & "n'existe pas. Veuillez le scanner et l'enregistrer"
End If
End Sub