syntax error

G

Garry

Private Sub Button_A_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button_A.Click
Imports System.Data.OleDb

Dim strSQL As String = "Select * From Customers"
Dim Connection As New OleDbConnection(strConnection)
Dim DA As New OleDbDataAdapter(strSQL, Connection)
Dim DS As New DataSet

DA.Fill(DS, "Customers")

dgrdProjects.DataSource = DA
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top