Problem with database connection RRS feed

  • Question

  • I can not connect to the database



    I did not understand why

    • Edited by jamilaid Saturday, September 9, 2017 12:40 AM
    Saturday, September 9, 2017 12:38 AM

All replies

  • what does it mean
    Saturday, September 9, 2017 6:36 AM
  • You may (if not already done) install the microsoft office database engine. If you have installed the engine then look at the compile tab for the project, what are your setting for "Target CPU" and "Prefer 32-bit" ? On my computer, 64 bit I have the 32 bit engine with these settings for working with the OleDb data provider (which it appears you are attempting to use).

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Saturday, September 9, 2017 8:34 AM
  • Hi jamilaid,

    The ACE provider is not installed on Windows operating systems by default. You have to install it. The ACE provider is available in two forms: Microsoft Office Access database engine 2007 and the Microsoft Access Database Engine 2010 Redistributable. The 2007 version is only available as a 32-bit component whereas the 2010 version offers both 32 and 64-bit options. You need to be careful which option you choose, because a wrong choice here is the most frequent cause for the error message.

    You can install the 2010 64-bit version. If you have the 2007 32-bit version installed, you can simply install the 2010 64-bit version alongside it. If you have the 32-bit version of 2010 installed, you need to uninstall it and download and install the 64-bit 2010 version instead. You cannot have both the 32- and 64-bit versions of the 2010 provider installed at the same time.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, September 11, 2017 6:36 AM