Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As String = "Provider=Microsoft.Jet.OLEDB.12.0;Data Source=G:\Visual Studio Projects\test\dbtest.accdb;Persist Security Info=False"
Dim cmd As String = "SELECT * FROM Table1"
Dim adapter As New OleDbDataAdapter(cmd, conn)
Dim topics As New DataSet("Table1")
adapter.Fill(topics)
dg.DataSource = topics
End Sub
End Class
When debugging cant see anything except a blank data grid viewer .... what am i doing wrong ?????????? I am using Visual Studio 2008 and MS Office 2007 in Vista 64 environment