D
David Hunt
I'm attempting to write a simple module that prompts the
user to browse for a file, select the file and then import
the file with a specific import specification.
I know that an Inputbox is not the thing to use. But I
don't know how to call a box with a browse for file
function?
Any help would be greatly appreciated.
*********** Begin Module Code *************
Option Compare Database
Option Explicit
Dim alpha As String
Sub Get_File()
alpha = Interaction.InputBox(Prompt:="File Name")
End Sub
Function Import_File(alpha)
doCmd.TransferText
(acImportDelim,BCCC_Specification,Data_1,[ & alpha & ],,,)
End Function
*********** End Module Code *************
user to browse for a file, select the file and then import
the file with a specific import specification.
I know that an Inputbox is not the thing to use. But I
don't know how to call a box with a browse for file
function?
Any help would be greatly appreciated.
*********** Begin Module Code *************
Option Compare Database
Option Explicit
Dim alpha As String
Sub Get_File()
alpha = Interaction.InputBox(Prompt:="File Name")
End Sub
Function Import_File(alpha)
doCmd.TransferText
(acImportDelim,BCCC_Specification,Data_1,[ & alpha & ],,,)
End Function
*********** End Module Code *************