|
-
Oct 21st, 2003, 04:44 AM
#1
Thread Starter
Fanatic Member
eVB - ActiveX component cannot be created
Hi
I've been issued with some eVB code which I need to get working... when I run the code the app fails 'ActiveX component cannot be
created' has anyone ever come across the same problem using
embedded VB code..........
Code:
Private Sub CreateDB()
Dim cat As ADOCE.Catalog
'Create the database
Set cat = CreateObject("ADOCE.Catalog.3.1") 'errors on this line
cat.Create gSQLEProvider + gFullFileSpec
Set cat = Nothing
End Sub
Thanks
Last edited by holly; Oct 21st, 2003 at 04:59 AM.
** HOLLY ** 
-
Oct 21st, 2003, 05:55 AM
#2
Lively Member
Yes i have seen it lots lol. The way I usually try to fix it first is by removing the reference saving then readding the reference then save. That should do it. Always fixed the problem for me.
===============
Tek
===============
-
Oct 21st, 2003, 06:22 AM
#3
Another thing to think about: you have "ADOCE.Catalog.3.1", which assumes version 3.1 is available.
I don't know how essential it is to use that particular version, but it might not be installed.
-
Oct 21st, 2003, 10:47 AM
#4
Thread Starter
Fanatic Member
-
Oct 21st, 2003, 11:49 AM
#5
it's more likely to be the ado installation that has problems (if it's separate from eVB)
if it isn't separate, then yep.. reinstall eVB
-
Oct 22nd, 2003, 05:26 AM
#6
Thread Starter
Fanatic Member
-
Oct 22nd, 2003, 06:41 AM
#7
-
Oct 22nd, 2003, 08:41 AM
#8
Thread Starter
Fanatic Member
-
Oct 22nd, 2003, 08:47 AM
#9
-
Oct 22nd, 2003, 08:51 AM
#10
Thread Starter
Fanatic Member
-
Nov 15th, 2003, 08:36 PM
#11
Junior Member
Hi,
This is the code you wrer given:
Private Sub CreateDB()
Dim cat As ADOCE.Catalog
'Create the database
Set cat = CreateObject("ADOCE.Catalog.3.1") 'errors on this line
cat.Create gSQLEProvider + gFullFileSpec
Set cat = Nothing
End Sub
("ADOCE.Catalog.3.1") should be:
("ADOCE.Connection.3.0").
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|