A voir également:
- FILEDIALOG en VB sous ACCESS 2002
- Vb - Télécharger - Langages
- Vb cable - Télécharger - Audio & Musique
- Access appdata - Guide
- Access runtime ✓ - Forum Access
- You don't have permission to access this resource ✓ - Forum Réseaux sociaux
1 réponse
Essaie d'ajouter cette référence dans VBA outils>référence
coche Microsoft Office 11.0 Object Library
ex :
Private Sub parcourir_Click()
Dim jaq As FileDialog
Dim Chemin As String
Set jaq = Application.FileDialog(msoFileDialogFilePicker)
Dim chJaq As Variant
With jaq
.Title = "Sélectionnez la jaquette"
.AllowMultiSelect = False
.Filters.Add "Fichiers images", "*.jpg;*.bmp;*.gif"
.InitialView = msoFileDialogViewThumbnail
If .show = -1 Then
For Each chJaq In .SelectedItems
Chemin = chJaq
Next
Else
End If
End With
If Chemin = "" Then
Exit Sub
Else
'enregistre jaquette
With Me.jaqu
.Class = ""
.OLETypeAllowed = acOLEEmbedded
.SourceDoc = Chemin
.Action = acOLECreateEmbed
End With
End If
End Sub
Ciao
coche Microsoft Office 11.0 Object Library
ex :
Private Sub parcourir_Click()
Dim jaq As FileDialog
Dim Chemin As String
Set jaq = Application.FileDialog(msoFileDialogFilePicker)
Dim chJaq As Variant
With jaq
.Title = "Sélectionnez la jaquette"
.AllowMultiSelect = False
.Filters.Add "Fichiers images", "*.jpg;*.bmp;*.gif"
.InitialView = msoFileDialogViewThumbnail
If .show = -1 Then
For Each chJaq In .SelectedItems
Chemin = chJaq
Next
Else
End If
End With
If Chemin = "" Then
Exit Sub
Else
'enregistre jaquette
With Me.jaqu
.Class = ""
.OLETypeAllowed = acOLEEmbedded
.SourceDoc = Chemin
.Action = acOLECreateEmbed
End With
End If
End Sub
Ciao