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.
Comments
Post a Comment