Solved

DBEngine failure

Posted on 1997-08-14
2
238 Views
Last Modified: 2006-11-17
I just installed an app that I wrote on a new machine. The app runs fine on my development machine, but dies on the econd machine. I isolated the error to the following line:

Set db =Engine.Workspaces(0).OpenDatabase("iqserver.mdb")

The error that occurs is 424: Object required. I wrote a program that basically tried to open and then close the database. It works on the devlopment machine and fails on the other machine. If I try to display DBEngine.version the app fails with the "Object Required" error. It shows 2.5 on the development machine. I think I have all of the required
OCX and DLL files on both machines. Any clues would be greatly appreciated.

BTW, this is a 16 bit app.

Thanks,
Bill

--
Bill Thompson
BBT Software
bbth@global2000.net
Time and place are fractions, God is an integer. - Meister Eckhart
0
Comment
Question by:bbth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
y96andha earned 200 total points
ID: 1430787
You need to register the files on the second machine. Use the VB setupkit to generate a setup application, when you run this it will automatically register all installed DLLs and OCXs. If the problem persists, you may have to remove the DLLs and OCXs before reinstalling.
0
 

Author Comment

by:bbth
ID: 1430788
Thanks, that's right. The proble was being caused by a faulty install setup that was not registering DAO2516.DLL even though it wasbeing copied. I created a new install setup and then it worked. We've now corrected the original install routine and it works too.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question