1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
| Private Sub MasubMajCommune()
Dim strDossier As String
Dim strFichier As String
Dim strFichier2 As String
Dim strChemin As String
Dim strchemin2 As String
strDossier = "C:\Documents and Settings\Administrateur\Mes documents\ADDICT\Content\"
strFichier = Nz(Photo_question_1.Value)
strFichier2 = Nz(Photo_reponse_1.Value)
If strDossier = "" Then
Form_REQ_2A1.Imgapercu.Picture = "C:\Documents and Settings\All Users\Documents\Mes images\Échantillons d'images\collines.jpg"
Form_REQ_2A1.Imgapercu2.Picture = "C:\Documents and Settings\All Users\Documents\Mes images\Échantillons d'images\collines.jpg"
Else
If Right(strDossier, 1) <> "\" Then
strDossier = strDossier + "\"
End If
If strFichier = "" Then
Form_REQ_2A1.Imgapercu.Picture = "C:\Documents and Settings\Administrateur\Mes documents\ADDICT\BD\Fichier Finaux\pas d'image.png"
Else
If ExistFile(strDossier + strFichier) = False Then
Form_REQ_2A1.Imgapercu.Picture = "C:\Documents and Settings\Administrateur\Mes documents\ADDICT\BD\Fichier Finaux\existe pas.png"
Else
strChemin = strDossier + strFichier
Form_REQ_2A1.Imgapercu.Picture = strChemin
End If
End If
If strFichier2 = "" Then
Form_REQ_2A1.Imgapercu2.Picture = "C:\Documents and Settings\Administrateur\Mes documents\ADDICT\BD\Fichier Finaux\pas d'image.png"
Else
If ExistFile(strDossier + strFichier2) = False Then
Form_REQ_2A1.Imgapercu2.Picture = "C:\Documents and Settings\Administrateur\Mes documents\ADDICT\BD\Fichier Finaux\existe pas.png"
Else
strchemin2 = strDossier + strFichier2
Form_REQ_2A1.Imgapercu2.Picture = strchemin2
End If
End If
End If
End Sub |
Partager