We help IT Professionals succeed at work.
Get Started

Ador.recordset with MySQL

Omer-Pitou asked
Last Modified: 2015-03-11
I am trying to load data into the third-party grid (exontrol), using the command below.
            cStmt="Select * from compte"
            cString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=root;Password=finger4;Data Source=FingerFinanceA10;Initial Catalog=fingerfinance"
            rs = new oleautoclient("ador.recordset")
            rs.open(cStmt, cString,3,3)
            oGrid = form.activex1.nativeObject
            oGrid.ColumnAutoResize = false
            oGrid.ContinueColumnScroll = false
            oGrid.datasource = rs

I am getting this error message
Error:  OLE Dispatch Exception:  The recordset must support the bookmarks. ( Supports( adBookmark ) = True )

It looks like it has something to do with cursortype, cursorlocation. I am not really sure.
The same example works in SQL Server (with a connection string point to SQL server of course),

How can I rewrite my open method to meet this requirement.
Watch Question
This problem has been solved!
Unlock 2 Answers and 9 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE