Solved

Visual Basic RDO Connection MySQL Error 429

Posted on 2004-08-03
2
1,086 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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
vba find the last empty column 10 81
Access 2016 VB code 9 86
VBA filters 2 37
Exit a vb6 apps when a calling it apps closes 15 33
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now