تم عمل الكود بهذه الطريقة
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 oldpathANDname As String, newpathANDname As String
oldpathANDname = CurrentProject.Path & "\download\" & [id] & "." & Right([ext], Len([ext]) - InStrRev([ext], "."))
newpathANDname = CurrentProject.Path & "\12 3\" & Left([Worker], 1) & "-file\" & Me.id & ".jpg"
Name oldpathANDname As newpathANDname
Me!imgPicture.Requery
End If
End Sub
مع وضع
FileName6([CurrentProject].[Path] & "\Download\";[ID])
فى مربع نص غير منظم
فهل يمكن تشغيله فى الكود بدون وضعه فى النموذج
وجزاكم الله خيراً
PhotoWEBP.rar