title: Data retrieval from Access file into DataTable not working
body: <p>I have some code to connect a database with the program, but for some reason at run time it does not show the data from the DB.</p>
  <pre><code>Public Class Form2
  
  Dim con As New OleDbConnection(&quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\employee\employee.accdb&quot;)
  Dim cmd As New OleDbCommand(&quot;&quot;, con)
  Dim empDA As New OleDbDataAdapter
  Dim empTable As New DataTable
  Dim dr As OleDbDataReader
  
  Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  
      Me.EmpTableAdapter.Fill(Me.EmpDataSet.emp)
      Dim cmd As New OleDbCommand(&quot;select * from emp&quot;, con)
      empDA = New OleDbDataAdapter(&quot;select * from emp&quot;, con)
      empDA.Fill(empTable)
      DataGridView1.DataSource = empDA
  End Sub
  </code></pre>