DAO/Jet Database problem

Posted on 1999-11-28
Medium Priority
Last Modified: 2013-11-20

  i wrote a program which uses DAO to access an Access database (.mdb).
 it works fine on my computer, but refuses to run on another computer with a fresh installation of WinNT 4. i get the error message "Can not initialize DAO/Jet databasemode" (in german: "Initialisierung des DAO/Jet Datenbankmodus nicht möglich").

 what do i have to do to get it running on all computers? which files do i have to copy to the system?

 thanks, Markus
Question by:MarkusSt
  • 2
LVL 86

Expert Comment

ID: 2238854
Did you install the DAO package? There's a folder named 'redist' on the VC++ CDOM where you can find the setup program, which is 'redistributable', i.e. MS allows to ship that with your application...

Author Comment

ID: 2238930
hi jkr,

 thanks for the fast answer. i just had the msvcrt.dll and mfc42.dll copied with the program. i didn't know i have to install the database drivers seperately.

anyway.. i found 2 "redist" directories, one in \DAOSDK and the other one in \VC98. i ran the setup program in the \DAOSDK\REDIST directory.. it copied some dll files and my program seems to work fine now. however, during installation it said that odbc32.dll is missing. is it enough if i just copy odbc32.dll from the \OS\SYSTEM directory to the computers, or is there some other setup program i have to run?

LVL 23

Expert Comment

ID: 2238983
INFO: Redistributing DAO Components with DAO Apps

HOWTO: Redistributing DAO with Your Visual C++ 5.0 Application

Redistributing Microsoft Visual C++ 6.0 Applications
LVL 86

Accepted Solution

jkr earned 300 total points
ID: 2239029
>>i found 2 "redist" directories, one in \DAOSDK and the
>>other one in \VC98.

It's the latter one - there's also a 'redistrib.wri' that describes what files are needed... Being at home, I have no VC++ here, so I can't tell you the exact path. But the links chensu postd should also give a good guidance...

PS: Gruß aus dem Schwabenland ;-)

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…

607 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