Results 1 to 7 of 7

Thread: A problem this is

  1. #1
    Guest

    Question

    I'm supposed to debug an App made by some other dude, and when I try to run it, this is what I get:

    ----------------------
    Run-time error '429':

    ActiveX component can't create object
    ----------------------

    When I hit the 'Debug' button, the first line of this code is "yellowed"...

    With rdoEngine
    .rdoDefaultLoginTimeout = 20
    .rdoDefaultCursorDriver = rdUseOdbc
    End With

    Anybody have a clue? Any tips?

    Could it be that I haven't installed some DB drivers, and/or set ODBC or something up correctly?

    Everything counts...

  2. #2
    Guest

    Smile

    rdoEngine , what does it stand for ??
    I think you haven't got the OCX registered for this control.


    Good luck

  3. #3
    Guest
    Rdo is a Remote Data Source/Object

    This is what MSDN says

    -------------------------------------------

    Dim en As rdoEnvironment
    Private Sub Form_Load()
    With rdoEngine
    .rdoDefaultLoginTimeout = 20
    .rdoDefaultCursorDriver = rdUseOdbc
    .rdoDefaultUser = "Fred"
    .rdoDefaultPassword = ""
    End With
    Set en = rdoEnvironments(0)
    '
    ' Dump current rdoEnvironments collection
    ' and display current properties where
    ' possible.
    '
    For Each en In rdoEnvironments
    Debug.Print "LoginTimeout:" & en.LoginTimeout
    Debug.Print "CursorDriver:" & en.CursorDriver
    Debug.Print "User:" & en.UserName
    ' (Write-only) Debug.Print "Password:" & en.Password
    Next
    End Sub

    ------------------------

    Shouldn't the "RdoEngine" object be defined somewhere?
    If it is defined in ODBC setup, where do I tell vb which Rdo source to look for?

    Thnx...

  4. #4
    Guest
    I think so too, like you've said.
    set "en" equal to the engines environments and fil up "en".


    Dim en As rdoEnvironment

    Set en = rdoEngine.rdoEvironments(0)
    With en
    en.CursorDriver = rdUseOdbc
    en.LoginTimeout = 20
    en.Name = "TransOp1"
    End With



  5. #5
    Addicted Member
    Join Date
    Sep 1999
    Location
    Philippines
    Posts
    196

    Smile

    It could be possible that you have not referenced this object yet. If this is so, Choos Project from the menu and click on the References... then select Microsoft Remote Data Object 2.0 ...

    Hope this helps.

  6. #6
    Guest
    I've checked Microsoft Remote Data Object 2.1

    But as it says "ActiveX component can't create object", which ActiveX component are we talking about here?

    Damn this problm!

  7. #7
    Lively Member
    Join Date
    Aug 2000
    Location
    Trondheim, Norway
    Posts
    65
    Is this a common problem?
    I had the same probleme once.

    Anybody experienced with RDO out there?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width