【问题标题】:VB.NET/Access DataGridView not displaying table contentsVB.NET/Access DataGridView 不显示表格内容
【发布时间】:2014-12-04 02:50:59
【问题描述】:

我正在尝试以您可以制作的最简单的形式在 DataGridView 中显示 Access 数据库表。但是,当我启动应用程序时,我看不到任何表数据。见下文。

我很高兴更新所需的任何其他信息。

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 ms-access visual-studio-2012


    【解决方案1】:

    我很好奇,直接去了bin文件夹下的可执行文件。执行后,我得到“'Microsoft.Jet.OLEDB.4.0'提供程序未在本地计算机上注册。我使用的是 Win 7 64 位,但我拥有的 Microsoft Office 套件是 32 位的。我得到了 32 -bit AccessDatabase Engine 引用here

    【讨论】:

      猜你喜欢
      • 2013-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多