Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Me.textbox1.Value = img_var
Function PickJpgFromFotoFolder() As String
Dim fd As FileDialog
Dim fotoPath As String, selectedFile As String
' Define the Foto folder path
fotoPath = CurrentProject.Path & "\Foto\"
' Create FileDialog as File Picker
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
.Title = "Select a JPG file"
.InitialFileName = fotoPath
.Filters.Clear
.Filters.Add "JPEG Images", "*.jpg;*.jpeg"
.AllowMultiSelect = False
' Show the dialog and check if user selected a file
If .Show = -1 Then ' -1 means OK clicked
selectedFile = .SelectedItems(1)
PickJpgFromFotoFolder = selectedFile
Else
PickJpgFromFotoFolder = "User cancelled"
End If
End With
End Function
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.