This may be a tough one but from what I've seen in this Forum, I'm sure someone can help. I'm using the following code to import a text file into a table using an Inputbox to get the file (Full Path).
Dim Message, Default, MyValue As String
Dim Title
Message = "Enter the File name including drivepath"
'Set Prompt
Default = ""
MyValue = InputBox(Message, Title, Default)
DoCmd.TransferText acImportFixed, "temp", "Temp1", MyValue
The Table has a field for the Filename. I would like to add some code to get the Filename from the InputBox (Not the full path) and populate that field for all the imported records.
Thank You!
Dim Message, Default, MyValue As String
Dim Title
Message = "Enter the File name including drivepath"
'Set Prompt
Default = ""
MyValue = InputBox(Message, Title, Default)
DoCmd.TransferText acImportFixed, "temp", "Temp1", MyValue
The Table has a field for the Filename. I would like to add some code to get the Filename from the InputBox (Not the full path) and populate that field for all the imported records.
Thank You!