Solved

Visual Basic RDO Connection MySQL Error 429

Posted on 2004-08-03
2
1,091 Views
Last Modified: 2013-12-25
I am currently trying to access a MySQL database in a VB6 app.  I have installed MySQL ODBC Driver 3.51 and created an ODBC linking to the table.  The code below is the code that is generating the error.

Dim cnMySql as new rdoConnection
..........
cnMySql.CursorDriver = rdUseOdbc
..........

I get an error when I try to call the cnMySQL object (error below)  

Run-Time error '429'
ActiveX Component can't create object.  

I thought that this may be a registration problem.  So I ran regsrv32 c:\winnt\system32\myodbc3.dll

I get the following message.

c:\winnt\system32\myodbc3.dll was loaded but the DllRegisterServer entry point was not found.  DllRegisterServer may be exported, or a corrupt version of myodbc3.dll may be in memory.  Consider using PVIEW to detect and remove it.

I am new to dll registration so I don't know if this file does not need to be registered or if maybe something is wrong with the dll.

Thank you,


0
Comment
Question by:nkjohnson
2 Comments
 
LVL 29

Accepted Solution

by:
leonstryker earned 500 total points
ID: 11704996
Can you create an OBDC DSN to MySQL from the Start/Settings/Control Panel/Data Sources (ODBC)?

This would act as a test to see if your dll is registered correctly.

BTW, why are you using RDO?  It is an outdated technology.

Leon
0
 

Author Comment

by:nkjohnson
ID: 11705709
The ODBC connection is fine.  You are correct RDO is outdated, and I am currently looking into ADO.  I have actually already created a connection that does not have a problem.

Thanks for your help.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now