In MS Access, If you try to import or link a text file not having one of the following extensions: txt, csv, asc or htm
Ms Access displays an error message:
You can only import files having txt,csv,asc,htm,html extension
To examine in a more accurate method the server’s LOG files, my project required to import and/or link text files having the LOG extension.
Something the MS Access refused to do... A solution had thus to be found.
There are several solutions:
- The first, of course, is to rename the files to one of the accepted extensions!
- Another more persistent solution:
- Open the registry;
- Go the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Text
- Modify the entry (SZ) named DisabledExtensions (originally having the text value "!txt, csv, asc,htm,html”
- Add to this entry the desired extension.
- Example, if you wish to add the extension log, give the entry the following value "!txt, csv,asc,htm,html,log"