Solved

DBEngine failure

Posted on 1997-08-14
2
227 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now