Results 1 to 6 of 6

Thread: [Solved]Error429:ActiveX component can't create object when try to use ADODB.Stream

  1. #1

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268

    [Solved]Error429:ActiveX component can't create object when try to use ADODB.Stream

    Solution:
    Check for MDAC installation. In my case, computer that got the problem have no MDAC install yet. My Application work fine after MDAC installation.


    I got some error as "429 : ActiveX component can't create object." when I try to use ADODB.Stream in form of myStream.Type = adTypeBinary. (Please see on VBCode that show below).

    I have test my application on many computer but only one computer that use Windows98SE got this error.

    What is a problem? and What should I do for solve this problem?

    VB Code:
    1. Private Sub cmdView_Click()
    2. On Error GoTo Resume_Error
    3. Dim myStream As New ADODB.Stream
    4. Dim cn As New ADODB.Connection
    5. Dim rs1 As New ADODB.Recordset
    6. Dim s As String
    7.     cn.Open modMain.ConnectionString
    8.     s = "SELECT RFile, RName FROM Registers WHERE RefNo = '" & ReferenceNumber & "'"
    9.     rs1.CursorLocation = adUseClient
    10.     rs1.Open s, cn, adOpenDynamic, adLockOptimistic
    11.     If rs1!RName <> "" Then
    12.         myStream.Type = adTypeBinary    '<< Error message when it try to do this line.
    13.     End If
    14.     rs1.Close
    15.     Exit Sub
    16. Resume_Error:
    17.     MsgBox Err.Number & " : " & Err.Description, vbCritical, "Resume Error"
    18. End Sub
    Last edited by solar115; Aug 25th, 2005 at 03:33 AM.
    ^solaris^

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Error 429 : ActiveX component can't create object when try to use ADODB.Stream

    Try this...

    VB Code:
    1. Private Sub cmdView_Click()
    2.     On Error GoTo Resume_Error
    3.     Dim myStream    As ADODB.Stream
    4.     Dim cn          As ADODB.Connection
    5.     Dim rs1         As ADODB.Recordset
    6.    
    7.     Set myStream = New ADODB.Stream
    8.     Set cn = New ADODB.Connection
    9.     Set rs1 = New ADODB.Recordset
    10.    
    11.     Dim s As String
    12.         cn.Open modMain.ConnectionString
    13.         s = "SELECT RFile, RName FROM Registers WHERE RefNo = '" & ReferenceNumber & "'"
    14.         rs1.CursorLocation = adUseClient
    15.         rs1.Open s, cn, adOpenDynamic, adLockOptimistic
    16.         If rs1!RName <> "" Then
    17.             myStream.Type = adTypeBinary    '<< Error message when it try to do this line.
    18.         End If
    19.         rs1.Close
    20.         Exit Sub
    21. Resume_Error:
    22.         MsgBox Err.Number & " : " & Err.Description, vbCritical, "Resume Error"
    23. End Sub
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268

    Re: Error 429 : ActiveX component can't create object when try to use ADODB.Stream

    dee-u,

    I try as your suggestion and I waiting for some reply from other site that got this problem.
    ^solaris^

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Error 429 : ActiveX component can't create object when try to use ADODB.Stream

    Quote Originally Posted by solar115
    dee-u,

    I try as your suggestion and I waiting for some reply from other site that got this problem.
    What other site? I thought it was your problem.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268

    Re: Error 429 : ActiveX component can't create object when try to use ADODB.Stream

    dee-u,
    Yes,It my problem.
    But I cannot test my app on many platform with only on my own computer. So that why I sent it to other site for test.
    ^solaris^

  6. #6

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268

    Re: [Solved]Error429:ActiveX component can't create object when try to use ADODB.Stream

    Solution:
    Check for MDAC installation. In my case, computer that got the problem have no MDAC install yet. My Application work fine after MDAC installation.
    ^solaris^

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