I have an excel workbook that uploads data into a sql database. The code has been working fine for the past year.
However today I am seeing the error message below. As far as I can tell nothing has changed.
The request for procedure 'tblMyTable' failed because 'tblMyTable' is a table object
The second line below is where the error occurs.
Dim rs As New ADODB.Recordset
rs.Open "tblMyTable", pCn, adOpenKeyset, adLockOptimistic
Why is this no longer working?
Check to make sure the stored procedure still exists. Then also check to make sure a table wasn't created with the same name as your stored procedure. Common practice would be to name the stored procedure as "procMyTable." Hope this helps someone else
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With