تم حل المشكلة جزاكم الله خيراُ
If Dir(CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\" & [id] & ".*") <> "" Then
Kill (CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\" & [id] & ".*")
Me!imgPicture.Requery
End If
If Dir(CurrentProject.Path & "\download\" & [id] & ".*", vbDirectory) <> "" Then
If Dir(CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\", vbDirectory) <> "" Then
Else
MkDir CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\"
End If
Dim Mypath As String
Mypath = FileName6(CurrentProject.Path & "\Download\", Me.id)
Dim oldpathANDname As String, newpathANDname As String
oldpathANDname = CurrentProject.Path & "\download\" & [id] & "." & Right([mypath], Len([mypath]) - InStrRev([mypath], "."))
newpathANDname = CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\" & Me.id & ".jpg"
Name oldpathANDname As newpathANDname
Me!imgPicture.Requery
End If