You are on the right track with this but, you wanna do a reader.Read() and envelope that in a while loop
rtb1.Text += Convert.ToString(reader) + "\n"; // the "\n" will make a new line for each row.
This will populate your richtextBox.
Before I go further I want to ask if you are doing this for yourself or an assignment? because there is an easier way to get the results you want than comparing the textbox to rows of text in a richtextbox.
It is for myself. It says that The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. Yet I have a legal copy of Microsoft Access 2007 installed. And really what I want to do is to get it to list the first value in the questions field.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...