Noname > 21-08-10, 11:25 AM
Function getFile(Tit As String, formatName As String, formatType As String)
Dim dlgOpen As FileDialog
Set dlgOpen = Application.FileDialog(msoFileDialogOpen)
With dlgOpen
.Title = Tit
.Filters.Clear
.Filters.Add formatName, formatType
.AllowMultiSelect = False
result = .Show
If (result <> 0) Then
getFile = Trim(dlgOpen.SelectedItems.Item(1))
End If
End With
End Function
Me![TxtPic] = GetFile("c:\", "Select the Picture File","*.jpg;*.bmp")
Me![TxtPic] = LCase(Me![TxtPic])
Me![Image].Picture = Me!TxtPic
hoangthanhhai > 07-06-11, 11:57 AM
quanghoasla > 08-06-11, 10:23 AM
loihhec > 11-06-11, 05:36 PM
quanghoasla > 12-06-11, 10:51 PM
anhhungbt9025 > 02-12-11, 05:46 PM
ndthanh29 > 13-12-12, 07:50 PM
quanghoasla > 19-12-12, 11:17 AM
ndthanh29 > 19-12-12, 12:57 PM
quanghoasla > 19-12-12, 02:54 PM