Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX component can't create object

Status
Not open for further replies.

mikeld

Technical User
Feb 8, 2006
2
DE
I am using eMbedded Visual Basic and trying to develop an app on a pda. I am using the following code in the "click" event of a button on a form. I have already added the ADO reference. All I want to do is connect to an Access Database, but I keep getting ActiveX component can't create object. Any help would be GREATLY appreciated!!!! Thanks in advance.


Private Sub Command1_Click()
Dim connDatabase
Set connDatabase = CreateObject("ADOCE.Connection.3.0")
connDatabase.ConnectionString = "data source = D:\Pocket_PC My Documents\pda.mdb"
connDatabase.Open


End Sub
 
You probably need to set the provider. The default provider is to CEDB which connects to *.cdb. You'll need to look up the provider for Access.

I hope this helps.

Dena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top