ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DAO text database (https://www.excelbanter.com/excel-programming/297486-dao-text-database.html)

No Name

DAO text database
 
Hi

Does anyone know how to insert a TAB delimited file into
and access table?

CSV file is fine but I also have TRAB delimited files to
insert

strSql = "INSERT INTO [tblWrapperTrades] SELECT * FROM
[TEXT;DATABASE=Y:\Dev\LTRM\Dev].[CH_Wrapper.csv]"

this works fine.

onedaywhen

DAO text database
 
wrote in message ...

Does anyone know how to insert a TAB delimited file into
and access table?

CSV file is fine but I also have TRAB delimited files to
insert

strSql = "INSERT INTO [tblWrapperTrades] SELECT * FROM
[TEXT;DATABASE=Y:\Dev\LTRM\Dev].[CH_Wrapper.csv]"

this works fine.


To specify tab delimited you must use a schema.ini file:

http://msdn.microsoft.com/library/de...htextfiles.asp

--


All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com