Hi,
My code is breaking on the below line with the error message. Run time error - Could not find installable ISAM.
.Open
Does any know how to resolve this problem?
Sub Insurance()
Dim cn As Connection, rs As Recordset
Set cn = New Connection
Set rs = New Recordset
mypath = "W:\.Team documents\Freehold team\Freehold managers\Reporting\Reports\Insurance ledger.csv"
With cn
.Provider = "microsoft.ace.oledb.12.0;data source=" & mypath & ";" & _
"Extended properties=""Txt';hdr=yes;fmt=delimited"""
.Open
End With
rs.Open "select * from [Insurance Ledger] where [Type]='Buildings - Property Owners' and [Status]='Active' or [Status]='Scheduled'", cn
Sheets("Insurance").Range("a1").CopyFromRecordset rs
rs.Close
cn.Close
End Sub
My code is breaking on the below line with the error message. Run time error - Could not find installable ISAM.
.Open
Does any know how to resolve this problem?
Sub Insurance()
Dim cn As Connection, rs As Recordset
Set cn = New Connection
Set rs = New Recordset
mypath = "W:\.Team documents\Freehold team\Freehold managers\Reporting\Reports\Insurance ledger.csv"
With cn
.Provider = "microsoft.ace.oledb.12.0;data source=" & mypath & ";" & _
"Extended properties=""Txt';hdr=yes;fmt=delimited"""
.Open
End With
rs.Open "select * from [Insurance Ledger] where [Type]='Buildings - Property Owners' and [Status]='Active' or [Status]='Scheduled'", cn
Sheets("Insurance").Range("a1").CopyFromRecordset rs
rs.Close
cn.Close
End Sub