Hi
I would like to create a form with upload file option.
the uploda include browse option. everytime I click on the browse it should open a dialog box.
which mean it should add the record to the table and for that I create a table with id and links fields
I found a code below that open a dialog box.
how do I store the folder and and the file name on my table
I would like to create a form with upload file option.
the uploda include browse option. everytime I click on the browse it should open a dialog box.
which mean it should add the record to the table and for that I create a table with id and links fields
I found a code below that open a dialog box.
how do I store the folder and and the file name on my table
Code:
Dim f As Object
Dim strDocumentFileName As String
Dim varItem As Variant
Set f = Application.FileDialog(3)
f.AllowMultiSelect = False
If f.Show Then
For Each varItem In f.SelectedItems
strDocumentFileName = Dir(varItem)
Me.txtDrawingFile = strDocumentFileName
Next
End If
Set f = Nothing