"The Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." 尝试运行表单时引发异常。例如购买表



我一直在尝试将微软访问数据库文件连接到我的Visual Basic应用程序。当我尝试运行应用程序时,我得到一个错误:"Microsoft.ACE.OLEDB.12.0"提供程序未在本地机器上注册";我用的是Microsoft visual basic 2012。

Public Class purchases
Private Sub Purchases_fileBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles Purchases_fileBindingNavigatorSaveItem.Click
Me.Validate()
Me.Purchases_fileBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.TNJ_Retail_Management_SystemDataSet)
End Sub
Private Sub purchases_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'TNJ_Retail_Management_SystemDataSet.Purchases_file' table. You can move, or remove it, as needed.
Me.Purchases_fileTableAdapter.Fill(Me.TNJ_Retail_Management_SystemDataSet.Purchases_file)
End Sub
End Class  

检查输出截图链接。1

有人知道吗?

可以通过下载Microsoft Access Database Engine并将其安装在我的PC上来纠正错误。然后我打开我的项目,重新构建并运行它。给出了预期结果。按此打开网站下载Microsoft Access数据库引擎

最新更新