please i need help
i wrote the below code and gave me an fill:selectCommand.connection property has not been initializded.
please help me urgent :(
cmd =
New OleDbCommand("select pid as [Patient ID], pname as [Patient Name], pgender as Gender, premarks as Remarks from patient_tb , con")
myda =
New OleDbDataAdapter(cmd)
mydataset =
New DataSet()
myda.Fill(mydataset,
"MyTable") (the error is in this line)
DataGridView1.DataSource = mydataset.Tables(
"MyTable")
Fill: SelectCommand.Connection property has not been initialized.