How to fix vba cannot find installable isam error
up vote
0
down vote
favorite
I have a connection string that uploads a range of cells to my sharepoint list. Today someone was unable to use this feature and received an error when running the macro. The error was Cannot Find Installable ISAM
. The person is running Office 2013, I am using Office 365 / Excel 2016. Not sure if this is due to the connection string not being made for older versions of Office. I blocked off my company's name in my string. .Open
is being highlighted for the error. Any help would be appreciated. Here is my code:
Public Sub update_SP()
Dim cnt As ADODB.Connection
Dim rst As ADODB.Recordset
Dim mySQL As String
Set cnt = New ADODB.Connection
Set rst = New ADODB.Recordset
mySQL = "SELECT * FROM [opsmangement] WHERE [branch]= '" & Sheet18.Range("A10").Value & "'"
On Error GoTo errorhndlr
With cnt
.ConnectionString = _
"Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=http://companyname.us.company-dns.com/sites/portvanregion/downtown/;LIST={51B3D896-995F-461F-BDB8-F8DB41128229};"
.Open
End With
rst.Open mySQL, cnt, adOpenDynamic, adLockOptimistic
rst.Fields("branch") = Sheet18.Range("A10").Value
'rst.Fields("declined") = Sheet18.Range("A11").Value
rst.Fields("cashbox exposures") = Sheet18.Range("A12").Value
rst.Fields("exposures to date") = Sheet18.Range("A13").Value
rst.Fields("exposures percentage") = Sheet18.Range("A14").Value
rst.Fields("cashbox cashcounts") = Sheet18.Range("A15").Value
rst.Fields("cashcounts to date") = Sheet18.Range("A16").Value
rst.Fields("cashcounts percentage") = Sheet18.Range("A17").Value
rst.Fields("coin machine test") = Sheet18.Range("A18").Value
rst.Fields("negotiables") = Sheet18.Range("A19").Value
rst.Fields("compliance") = Sheet18.Range("A20").Value
rst.Fields("loan exceptions") = Sheet18.Range("A21").Value
rst.Fields("cash tracker") = Sheet18.Range("A22").Value
rst.Fields("ops grade") = Sheet18.Range("A23").Value
rst.Fields("district") = Sheet18.Range("A9").Value
'rst.Fields("Actual") = rst.Fields("Actual") + 100
rst.Update
If CBool(rst.State And adStateOpen) = True Then rst.Close
Set rst = Nothing
If CBool(cnt.State And adStateOpen) = True Then cnt.Close
Set cnt = Nothing
MsgBox "I have uploaded your new results"
Exit Sub
errorhndlr: MsgBox "I wasn't able to upload your numbers for you, I have created an email with your updated numbers that you can send"
emailtable
End Sub
microsoft-excel vba
add a comment |
up vote
0
down vote
favorite
I have a connection string that uploads a range of cells to my sharepoint list. Today someone was unable to use this feature and received an error when running the macro. The error was Cannot Find Installable ISAM
. The person is running Office 2013, I am using Office 365 / Excel 2016. Not sure if this is due to the connection string not being made for older versions of Office. I blocked off my company's name in my string. .Open
is being highlighted for the error. Any help would be appreciated. Here is my code:
Public Sub update_SP()
Dim cnt As ADODB.Connection
Dim rst As ADODB.Recordset
Dim mySQL As String
Set cnt = New ADODB.Connection
Set rst = New ADODB.Recordset
mySQL = "SELECT * FROM [opsmangement] WHERE [branch]= '" & Sheet18.Range("A10").Value & "'"
On Error GoTo errorhndlr
With cnt
.ConnectionString = _
"Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=http://companyname.us.company-dns.com/sites/portvanregion/downtown/;LIST={51B3D896-995F-461F-BDB8-F8DB41128229};"
.Open
End With
rst.Open mySQL, cnt, adOpenDynamic, adLockOptimistic
rst.Fields("branch") = Sheet18.Range("A10").Value
'rst.Fields("declined") = Sheet18.Range("A11").Value
rst.Fields("cashbox exposures") = Sheet18.Range("A12").Value
rst.Fields("exposures to date") = Sheet18.Range("A13").Value
rst.Fields("exposures percentage") = Sheet18.Range("A14").Value
rst.Fields("cashbox cashcounts") = Sheet18.Range("A15").Value
rst.Fields("cashcounts to date") = Sheet18.Range("A16").Value
rst.Fields("cashcounts percentage") = Sheet18.Range("A17").Value
rst.Fields("coin machine test") = Sheet18.Range("A18").Value
rst.Fields("negotiables") = Sheet18.Range("A19").Value
rst.Fields("compliance") = Sheet18.Range("A20").Value
rst.Fields("loan exceptions") = Sheet18.Range("A21").Value
rst.Fields("cash tracker") = Sheet18.Range("A22").Value
rst.Fields("ops grade") = Sheet18.Range("A23").Value
rst.Fields("district") = Sheet18.Range("A9").Value
'rst.Fields("Actual") = rst.Fields("Actual") + 100
rst.Update
If CBool(rst.State And adStateOpen) = True Then rst.Close
Set rst = Nothing
If CBool(cnt.State And adStateOpen) = True Then cnt.Close
Set cnt = Nothing
MsgBox "I have uploaded your new results"
Exit Sub
errorhndlr: MsgBox "I wasn't able to upload your numbers for you, I have created an email with your updated numbers that you can send"
emailtable
End Sub
microsoft-excel vba
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a connection string that uploads a range of cells to my sharepoint list. Today someone was unable to use this feature and received an error when running the macro. The error was Cannot Find Installable ISAM
. The person is running Office 2013, I am using Office 365 / Excel 2016. Not sure if this is due to the connection string not being made for older versions of Office. I blocked off my company's name in my string. .Open
is being highlighted for the error. Any help would be appreciated. Here is my code:
Public Sub update_SP()
Dim cnt As ADODB.Connection
Dim rst As ADODB.Recordset
Dim mySQL As String
Set cnt = New ADODB.Connection
Set rst = New ADODB.Recordset
mySQL = "SELECT * FROM [opsmangement] WHERE [branch]= '" & Sheet18.Range("A10").Value & "'"
On Error GoTo errorhndlr
With cnt
.ConnectionString = _
"Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=http://companyname.us.company-dns.com/sites/portvanregion/downtown/;LIST={51B3D896-995F-461F-BDB8-F8DB41128229};"
.Open
End With
rst.Open mySQL, cnt, adOpenDynamic, adLockOptimistic
rst.Fields("branch") = Sheet18.Range("A10").Value
'rst.Fields("declined") = Sheet18.Range("A11").Value
rst.Fields("cashbox exposures") = Sheet18.Range("A12").Value
rst.Fields("exposures to date") = Sheet18.Range("A13").Value
rst.Fields("exposures percentage") = Sheet18.Range("A14").Value
rst.Fields("cashbox cashcounts") = Sheet18.Range("A15").Value
rst.Fields("cashcounts to date") = Sheet18.Range("A16").Value
rst.Fields("cashcounts percentage") = Sheet18.Range("A17").Value
rst.Fields("coin machine test") = Sheet18.Range("A18").Value
rst.Fields("negotiables") = Sheet18.Range("A19").Value
rst.Fields("compliance") = Sheet18.Range("A20").Value
rst.Fields("loan exceptions") = Sheet18.Range("A21").Value
rst.Fields("cash tracker") = Sheet18.Range("A22").Value
rst.Fields("ops grade") = Sheet18.Range("A23").Value
rst.Fields("district") = Sheet18.Range("A9").Value
'rst.Fields("Actual") = rst.Fields("Actual") + 100
rst.Update
If CBool(rst.State And adStateOpen) = True Then rst.Close
Set rst = Nothing
If CBool(cnt.State And adStateOpen) = True Then cnt.Close
Set cnt = Nothing
MsgBox "I have uploaded your new results"
Exit Sub
errorhndlr: MsgBox "I wasn't able to upload your numbers for you, I have created an email with your updated numbers that you can send"
emailtable
End Sub
microsoft-excel vba
I have a connection string that uploads a range of cells to my sharepoint list. Today someone was unable to use this feature and received an error when running the macro. The error was Cannot Find Installable ISAM
. The person is running Office 2013, I am using Office 365 / Excel 2016. Not sure if this is due to the connection string not being made for older versions of Office. I blocked off my company's name in my string. .Open
is being highlighted for the error. Any help would be appreciated. Here is my code:
Public Sub update_SP()
Dim cnt As ADODB.Connection
Dim rst As ADODB.Recordset
Dim mySQL As String
Set cnt = New ADODB.Connection
Set rst = New ADODB.Recordset
mySQL = "SELECT * FROM [opsmangement] WHERE [branch]= '" & Sheet18.Range("A10").Value & "'"
On Error GoTo errorhndlr
With cnt
.ConnectionString = _
"Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=http://companyname.us.company-dns.com/sites/portvanregion/downtown/;LIST={51B3D896-995F-461F-BDB8-F8DB41128229};"
.Open
End With
rst.Open mySQL, cnt, adOpenDynamic, adLockOptimistic
rst.Fields("branch") = Sheet18.Range("A10").Value
'rst.Fields("declined") = Sheet18.Range("A11").Value
rst.Fields("cashbox exposures") = Sheet18.Range("A12").Value
rst.Fields("exposures to date") = Sheet18.Range("A13").Value
rst.Fields("exposures percentage") = Sheet18.Range("A14").Value
rst.Fields("cashbox cashcounts") = Sheet18.Range("A15").Value
rst.Fields("cashcounts to date") = Sheet18.Range("A16").Value
rst.Fields("cashcounts percentage") = Sheet18.Range("A17").Value
rst.Fields("coin machine test") = Sheet18.Range("A18").Value
rst.Fields("negotiables") = Sheet18.Range("A19").Value
rst.Fields("compliance") = Sheet18.Range("A20").Value
rst.Fields("loan exceptions") = Sheet18.Range("A21").Value
rst.Fields("cash tracker") = Sheet18.Range("A22").Value
rst.Fields("ops grade") = Sheet18.Range("A23").Value
rst.Fields("district") = Sheet18.Range("A9").Value
'rst.Fields("Actual") = rst.Fields("Actual") + 100
rst.Update
If CBool(rst.State And adStateOpen) = True Then rst.Close
Set rst = Nothing
If CBool(cnt.State And adStateOpen) = True Then cnt.Close
Set cnt = Nothing
MsgBox "I have uploaded your new results"
Exit Sub
errorhndlr: MsgBox "I wasn't able to upload your numbers for you, I have created an email with your updated numbers that you can send"
emailtable
End Sub
microsoft-excel vba
microsoft-excel vba
asked Nov 20 at 20:41
Jose Cortez
33
33
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52
add a comment |
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377099%2fhow-to-fix-vba-cannot-find-installable-isam-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
stackoverflow.com/a/10714048/1188513 - try surrounding the DATABASE argument with single quotes. Also verify if the registry has the necessary keys: support.microsoft.com/en-ca/help/209805/…
– Mathieu Guindon
Nov 20 at 21:52