2014-12-04 70 views
0

我试图在DataGridView中以最简单的形式显示Access数据库表。但是,当我启动应用程序时,我看不到任何表格数据。见下文。VB.NET/Access DataGridView不显示表格内容

我很乐意随时更新所需的任何附加信息。

VB:

Option Explicit On 
Option Strict On 
Option Infer Off 

Public Class Form1 

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 
     'TODO: This line of code loads data into the 'MOKANDataSet.SalaryHistory' table. You can move, or remove it, as needed. 
     Me.SalaryHistoryTableAdapter.Fill(Me.MOKANDataSet.SalaryHistory) 

    End Sub 

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click 
     Me.Close() 
    End Sub 
End Class 

这里是应用程序运行时。在Visual Studio项目的

VB.NET Form sans Access database information.

概述

Overview of project in Visual Studio

回答

0

我很是好奇,就直接在bin文件夹中的可执行文件。在执行时,我得到了“Microsoft.Jet.OLEDB.4.0”提供程序没有在本地机器上注册,我使用的是Win 7 64 Bit,但是我拥有的Microsoft Office套件是32位的,我得到了32位AccessDatabase引擎here