I can import a text file using the following code:
Docmd.TransferText , , "Crinc Temp", "C:\Access\Rec_1019.txt", False
but I want to be able to place a textbox on a form and have the user be able to enter the textfile name they want to import (the text file is always the date so it will change) - make that filename a variable and place that variable in the code listed above. How do I go about that? I keep getting a 'Micorsoft Jet could not find the object imp_file". Imp_file is the variable I'm trying to use as the Date entered in the textbox.
Docmd.TransferText , , "Crinc Temp", "C:\Access\Rec_1019.txt", False
but I want to be able to place a textbox on a form and have the user be able to enter the textfile name they want to import (the text file is always the date so it will change) - make that filename a variable and place that variable in the code listed above. How do I go about that? I keep getting a 'Micorsoft Jet could not find the object imp_file". Imp_file is the variable I'm trying to use as the Date entered in the textbox.