我一直在尝试将 Microsoft 访问数据库文件连接到我的 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
有人有什么主意吗?