Re: Error 429 when opening a disconnected recordset



I thought only MDAC was required. I can run VBScript programs that use
disconnected recordsets on Windows 95 clients.

If this is a VB6 program could you be referencing a version of ADO not on
the client? If your program is not installed with something that would
upgrade MDAC, it might help to reference the oldest version of ActiveX Data
Objects available.

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net

"Andy DF" <nospam@xxxxxxxxxx> wrote in message
news:4430d3b7$0$29116$5fc30a8@xxxxxxxxxxxxxxxxxx
(This was previously posted on microsoft.public.vb.databse.ado, sorry for
multiposting, I guess I posted in the wrong NG.)

The following code creates and opens a disconnected ADODB.Recordset.
On some machines I get an error 429 "ActiveX component can't create
object" when the Recordset.Open statement is executed.
This has happend on Win ME and on Win XP.
Does anyone know what could be the source of the problem?

TIA,
Andy

Private Sub pTest1()
Dim rs As Recordset

On Error GoTo ERR_OUT

Set rs = New Recordset
rs.Fields.Append "TestField", adBoolean
rs.Open ' Error 429 HERE!!! WHY???

' Ok
MsgBox "Test #1: OK", vbInformation

' Clean up
rs.Close
Set rs = Nothing
Exit Sub

ERR_OUT:

MsgBox Err.Description & vbCrLf & Err.Number, vbExclamation
Err.Clear

End Sub



.



Relevant Pages

  • Re: MDAC Converting Dataset to XML
    ... I hadn't realised there was a later version of MDAC than the one we had ... recordset is fine, the code that does this is a mirror of the conversion to ... XML and for completeness I include a copy (albeit ... Can you reproduce the symptom by saving the first piece of xml to a file, ...
    (microsoft.public.data.ado)
  • Re: tempdb locks in SQL2K - Need explanation
    ... > We have a production database that has worked fine in many installations. ... The problem always seem to be caused by certain specific clients. ... > These clients opens a snapshot recordset using ODBC. ... The blocking spid still has IS TAB locks on the tables the ...
    (microsoft.public.sqlserver.odbc)
  • Re: Persisted XML files cannot be opened...
    ... which ships with MDAC to see if MDAC is not corrupted on this PC. ... > The first statement plucks an ADO recordset, stored as an XML fragment, ... The error message points to a problem in the ...
    (microsoft.public.data.ado)
  • Re: Persisted XML files cannot be opened...
    ... which ships with MDAC to see if MDAC is not corrupted on this PC. ... > The first statement plucks an ADO recordset, stored as an XML fragment, ... The error message points to a problem in the ...
    (microsoft.public.vb.winapi)
  • Re: Persisted XML files cannot be opened...
    ... which ships with MDAC to see if MDAC is not corrupted on this PC. ... > The first statement plucks an ADO recordset, stored as an XML fragment, ... The error message points to a problem in the ...
    (microsoft.public.vb.com)