[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Run time error 429

Good morning experts. I  coding an application in VB access a MySQL DB. I am getting a runtime error 429 -- indicting that an Active X object cannot be created - - i must be miss a library reference but i cannot figure out which one -- thoughts?
0
ChuckRush
Asked:
ChuckRush
  • 6
  • 6
1 Solution
 
GrahamSkanCommented:
Nor can we without further information. Can you show the code, please?
0
 
ChuckRushAuthor Commented:
I am sorry - i am using the following code to just test:

Private Sub cmdConnect_Click()
Dim cn As New rdoConnection
Dim qry As New rdoQuery
Dim rs As rdoResultset
dim wStr as String
 
cn.CursorDriver = rdUseOdbc
cn.Connect = "uid=r183;pwd=Test4351;server=172.4.34.2;driver={MySQL ODBC 3.51 Driver};database=SDesk;dsn=KACE;"

cn.EstablishConnection
 
With qry
      .Name = "queryName"
      .SQL = "select * from HD_CATEGORY"
      .RowsetSize = 1
      Set .ActiveConnection = cn
      Set rs = .OpenResultset(rdOpenKeyset, rdConcurRowVer)
End With
      
 loop through the record set processing the
 records and fields.
Do Until rs.EOF
      With rs
        wStr =  rs!CATEGORY
          msgbox wStr
        rs.MoveNext
      End With
Loop
rs.Close
cn.Close
End Sub
0
 
GrahamSkanCommented:
Not many RDO applications about - I've never used it.

There's nothing obvious, but  I doubt that it is a references problem. That you give you a  different error.

Which line does it fail on?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
GrahamSkanCommented:
FYI, the reference that you need is for the Microsoft Remote Data Object. If it were missing you would get a 'User-defined type not defined' error.
0
 
ChuckRushAuthor Commented:
Thanks -- I must still be sleeping this morning  -- i forgot to give you the ones i have loaded.
VA for Applications
Outlook 14.0 Object Library
Forms 2.0 Object Library
Remote Data Services 6.0 Library
Remote Data Services Server 6.0 Library
Remote Data Object 2.0
Office 14.0 Object Library
ActiveX Data Objects 6.0 Library
ADo Ext.for DDL and Security

I am using a Windows 7 (64) desktop
Thanks
0
 
GrahamSkanCommented:
It's late afternoon here but I am beginning to droop, too.

On the code that you posted you only need the VBA and the RDO libraries.

Note that it would be useful to know where the error is raised.
0
 
ChuckRushAuthor Commented:
Cñ.cursordriveru=rduseodbc
0
 
GrahamSkanCommented:
Sorry, I can't reproduce the problem. It works OK for me, so I guess that there is something wrong somewhere with your support files (DLLs, etc).

There is some more detailed advice and a fix programme at Wiki Errors, here:

http://www.wiki-errors.com/err.php?wiki=429
0
 
ChuckRushAuthor Commented:
I have run several registry cleaners and i still get the error 'cannot create Active X"
0
 
ChuckRushAuthor Commented:
Thanks Graham. I managed a workaround using ADO . The site you sent me has given me more tings to research.
0
 
GrahamSkanCommented:
I wise move to use ADO. It doesn't have or need a CursorDrver property.

I would have suggested it, but most questioners don't like to be advised to do something completely different, and for all I knew you have thousands of lines in RDO.
0
 
ChuckRushAuthor Commented:
I want to give Graham the points since he gave me a research direction. This error is clearly system dependent.


Thanks  I am sorry for the confusion
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now