Discussion Locked

Visual Basic 6.0 Error

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Whenever I want run my visual basic project, it gives me this error:

Run-time error '429'
ActiveX component can't create object.

When I try to debug, it prompts me on the line:

Set db=Opendatabase("C:\xxx\xxx.mdb")

I installed Visual Basic again but it didn't work.
What do you think is the problem?

8 replies

by sl-campbell

"Have you included the Access Object Library to your Project > References?"

This is the wrong way to go.

Make sure you have the latest SP from VB6 (Sp5) @

www.microsoft.com\downloads\

I assume by the code you wrote that you are usingDAO. If you are using ADO then this code will not work.

by sl-campbell

Again, get the latest service pack - it will include a newer version of MDAC - this should help.

Once updated, if the error still occurs, then get back to us.

by rrv

this error 429 is mostly generated by the provider. i think you have referenced ADO and tried to use DAO opendatabase method. if you use dsn, start the trace and find exactly where it fails.
RV

This discussion is closed to new replies.