A family of Microsoft relational database management systems designed for ease of use.
Andy, you are using the code incorrectly. If what you are trying to do is select a file for import, do not use a list box. Create a text box and name it txtFilename. Then change the line of code you have highlighted to:
Me.txtFilename = varFile
Also change AllowMultiSelect to False.
Then add a TransferText method after the End With line. In the argument for Source file put Me.txtFilename.
The code you found is used to create a list of files in a folder. But that's not what you want, you want to select a file and do something with it.
One more thing, you can comment out the .Filters lines that refer to Access databases. You don't need those. If you want you can replace them with filters for .txt and .csv.