|
-
Jul 11th, 2022, 09:20 AM
#1
Thread Starter
Member
Compiler error: ActiveX component can't create object on Apple computer
My project written in VB 6.0 under Windows 10 is working perfectly.
When I use the same project on An Apple computer with VB 6.0 under Windows 10, I get the compiler error : "ActiveX component can't create object" in the following part of code, referring to OpenDatabase
Dim db As Database
Set db=OpenDatabase(App.path & "\data1.mdb,false,false)
I have selected the following references:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
Microsoft Data Formatting Object Library 6.0 (SP6)
Microsoft Data Binding Collection VB 6.0 (SP4)
Microsoft Data Report Designer 6.0 (SP4)
Microsoft Scripting Runtime
Microsoft Office 16.0 Access database engine object library
Microsoft ActiveX Data Objects 2.8 Library
Microsoft ActiveX Data Objects Recordset 2.8 Library
Microsoft WinHTTP Services, version 5.1
Microsoft XML, v6.0
If I add the reference "Microsoft DAO 3.6 Object Library" then I get the error "Name conflicts with existing module, project, or object library"
Any suggestions?
Tags for this Thread
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
|