My code is:

VB Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
  2. Try
  3. Dim OleDbCommand1 As New OleDb.OleDbCommand("SELECT * FROM Table1 WHERE Field = '" & TextBox1.Text & "' ", OleDbConnection)
  4. Dim OleDbDataAdapter1 As New OleDb.OleDbDataAdapter(OleDbCommand1)
  5. OleDbDataAdapter1.Fill(DataSet1)
  6. Catch oledbex As OleDb.OleDbException
  7.             MessageBox.Show(oledbex.Message)
  8.         End Try
  9.  
  10.     End Sub

A datagrid is being used to show the information. I want the grid to show the fields where the text in the textbox matches the text in a database field. So far when i click the button nothing happens. What am i doing wrong. please help me.