Hi
I'm trying to pull the file location from a unbound text box into the TransferText Import DoCmd but it's saying it needs a file name?
I'm missing something just don't know what!
Thanks for any help
I'm trying to pull the file location from a unbound text box into the TransferText Import DoCmd but it's saying it needs a file name?
Code:
Private Sub Import_File_Click()
Dim LongFileName As String
Me.TxtProfile.Value = LongFileName
DoCmd.TransferText acImportDelim, , "tblImport", LongFileName
End Sub
I'm missing something just don't know what!
Thanks for any help