Try conn.Open() Dim Query As String Query = " Select * from ebplsgabaldon.applicationtable" COMMAND = New MySqlCommand(Query, conn) SDA.SelectCommand = COMMAND 'this is the error COMMAND' SDA.Fill(dbDataset) bSource.DataSource = dbDataset DataGridView1.DataSource = bSource SDA.Update(dbDataset) TxtRowCount.Text = DataGridView1.RowCount - 1 DataGridView1.Sort(DataGridView1.Columns(5), System.ComponentModel.ListSortDirection.Ascending) conn.Close() Catch ex As Exception MessageBox.Show(ex.Message) Finally conn.Dispose() End Try
MySqlCommand
using
COMMAND
new
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)