G
Guest
I have figured out how to open a dialog box to allow the user to browse for a
file, but now I want Access 2000 to import that file using an import
specification to an existing table. I have the code below to open the dialog
box - how do I now import that file selected by the user?
Private Sub cmdFileDialog_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Tab Files (*.tab)", "*.tab")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
End Sub
file, but now I want Access 2000 to import that file using an import
specification to an existing table. I have the code below to open the dialog
box - how do I now import that file selected by the user?
Private Sub cmdFileDialog_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Tab Files (*.tab)", "*.tab")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
End Sub