vba - Provider=Microsoft.Jet.OLEDB.4.0 And error : path not valid for CSV records retriving -


currentpath2 = "c:\output-cities.txt"  dim cn,rs       set cn = createobject("adodb.connection")     set rs = createobject("adodb.recordset")    strconn= "provider=microsoft.jet.oledb.4.0;data source=" & currentpath2 & ";extended properties='text;hdr=no'"      cn.connectionstring = strconn cn.open     rs.activeconnection = cn     rs.source = "select * " & currentpath2`enter code here` 

it gives error on provider=... line says path not valid, need install oledb driver see ole folder in system folder of c drive, please lemme know if have achieve more. baiscally want retrive csv records in recordsets, please lemme know if can me here., has work in both vba , lotusscript.

have added reference vba project?

reference


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -