Hi Bob, i have done the following and it works: _ConnectionPtr pConnection = NULL ; pConnection.CreateInstance(__uuidof(Connection)); _RecordsetPtr pRec = NULL ; pRec.CreateInstance(__uuidof(Recordset)); _bstr_t strConn2("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\Northwind.mdb") ; pConnection->Open(strConn2,"","",NULL); pRec->Open("SELECT * FROM [Text;Database=c:\\Temp;HDR=YES;FMT=Delimited].[1.txt]", pConnection.GetInterfacePtr(), adOpenStatic, adLockReadOnly, adCmdText); int nCount = pRec->GetRecordCount(); The data: "Praefix";"Trennung" "acco";5 "asso";5 "comm";5 "comp";5 "conc";5 "conf";5
M
Makub
@Makub