how do one use a selectcommand with parameters like for example i have an empty datagrid with columns of the table. then on column1 i enter a value that i want to search.
i tried
i get an error here that says not all variables are bound.
any clues?
thanks.
i tried
VB.NET:
Dim myAdapter as new OleDBDataAdapter
Dim cmSelect as new OleDBCommand("SELECT * FROM table1 WHERE column1 = :column1", myConnection)
Dim myDataSet as DataSet
myAdapter.SelectCommand = cmSelect
myAdapter.Fill(myDataSet, "table1")
myDataGrid.DataSource = myDataSet.Tables("table1")
i get an error here that says not all variables are bound.
any clues?
thanks.