Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2003
    Posts
    5

    Red face Unanswered: Unable to initalize DAO/Jet DB engine in Windows ME/XP

    Hello ,

    My application is using DAO 3.6 and it is running fine
    when it is being run from the VC++ 6.0 environemnt . But
    withoug the VC++ environment, when it is executed it
    crashes. The error is being given when trying to open the
    MS Access database ,I caught the exception , and it
    says "Unable to Initialize OLEDB/Jet engine". There is a
    KB , regarding this very same exception, but thats only
    applicable for VC++ 4.2. Anyway, I checked with the DLL's
    mentioned there and found it was ok. I also execute the
    DAOChecker tool , and the COmponent Checker tool to see if
    anything is missing , but with no luck .

    As the app, runs when VC++ 6.0 is installed, I guess
    there are some dependencies , can anyone help me by saying
    how can I make DAO inpendent.

    Any help from your side would be highly appreciated . Please answer to this as this is is the best DB forum I have found.

    Sujay

  2. #2
    Join Date
    Feb 2002
    Posts
    403
    Have you set a reference to DAO in your Access side of the application?

  3. #3
    Join Date
    Feb 2003
    Posts
    5

    Unable to initalize DAO/Jet DB Engine

    HI ,

    I am afraid I cant get your question properly . I am getting the error when I am trying to open the Access file , by using CDaoDatabase::Open( );

    Sujay

  4. #4
    Join Date
    Feb 2002
    Posts
    403
    This is a guess on my part, as I am not sure what you are doing and not familiar with C++, but if I am having trouble of the type you describe I would set a reference from VBA to the DAO 3.6 library as a first fault find attempt. It would take about 2 seconds and may help solve your problem???

  5. #5
    Join Date
    Feb 2003
    Posts
    5
    HI ,

    I am using VC++ and DAO to create my app . To open the MS Access Database I am using the CDaoDatabase::Open() to open the Access database . When VC++ is not installed and one tries to execute the app, it gives an exception. I trace the part where it was giving the error, and I found , to the CDaodatabase::Open( ) function. When I placed the code within the try ... catch block , it gives me an exception, "Unable to initialize DAO/Jet DB engine". But on the other hand , if VC++ is installed and the application is executed, it runs fine. Does DAO have any dependencies... if yes, how do I make DAO independent .

    Thanks in advance ,

    Sujay

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •