Results 1 to 6 of 6

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

Threaded View

  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^

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