Unsupported DB engine or DB engine is not defined in the DEF File-VBForums
Results 1 to 9 of 9

Thread: Unsupported DB engine or DB engine is not defined in the DEF File

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2017
    Posts
    3

    Unsupported DB engine or DB engine is not defined in the DEF File

    Hi,
    I am Using VB6 with Access 2007 database and I am getting the following error message just trying to run the code in VB6.

    This code previously worked on this PC and now doesn't.

    Any Tips or suggestions?

    Thanks.

    FVM

  2. #2
    New Member
    Join Date
    Aug 2017
    Posts
    7

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    What OS are you using and what recent changes/updates to the system have you made? Can you please post your code and indicate which line you're getting that error? (Please wrap your code with [CODE] ... your code here ... [/CODE] tags.)

  3. #3
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    2,962

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Hey Foxtrot,

    Also, please specify what technology you're using to access this Access 97 database: DAO, ADO, RDO, other?

    Also, at least what I can see of your post, you didn't give us the error message.

    Take Care,
    Elroy

  4. #4
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,370

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    ConnectionString ?

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2017
    Posts
    3

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Quote Originally Posted by Elroy View Post
    Hey Foxtrot,

    Also, please specify what technology you're using to access this Access 97 database: DAO, ADO, RDO, other?

    Also, at least what I can see of your post, you didn't give us the error message.

    Take Care,
    Elroy
    Thanks for getting back to me Elroy,

    Access 2007 and ADO.

    'Unsupported DB engine or DB engine is not defined in the DEF File' is the error message.

    This message pops while trying to run the code in VB6. It seems to come up before any of the code is even run.

    Foxtrot

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2017
    Posts
    3

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Windows XP, no recent changes PC was sitting on shelf with nothing plugged in and powered off.
    Not getting the error on any line, it seems to appear before the program starts to run.

  7. #7
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    16,409

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Quote Originally Posted by FoxtrotVictorMike View Post
    Not getting the error on any line, it seems to appear before the program starts to run.
    Are you using the ADODC control or some other pre-configured object? If so, you set up the connection string within that control. In any case, maybe we should see the connection string you are using to get to the database?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {GDI+ Classes/Samples} {Unicode Open/Save Dialog} {Icon Organizer/Extractor}
    {VB and DPI Tutorial} {XP/Vista Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  8. #8
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    2,962

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Yes, and if you're not using the ADODC control, which of the ADO libraries is your project using (IDE / Menu / Project / References...)...

    Name:  ADO.png
Views: 32
Size:  19.1 KB

    I'm not the absolute expert as to when each of those versions became available, but simply changing the version you're using may fix your problems.

    Good Luck,
    Elroy

  9. #9
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,370

    Re: Unsupported DB engine or DB engine is not defined in the DEF File

    Quote Originally Posted by FoxtrotVictorMike View Post
    Access 2007 and ADO.
    ConnectionString???

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.