Say for example your two text box contain some information related to date and you want to get the information between those two dates to display on the Crystal Report form.
The way you did above is one, and then there is one more easier way of doing the same.
The would be to use the ReportSource option
Dim ds As New DataSet
Dim commandResult As OleDbCommand = New OleDbCommand("your querry based on the 2 fields applicable to the table")
commandResult.CommandType = 1
commandResult.Connection = cno
commandResult.ExecuteNonQuery()
Dim adapter As OleDbAdapter = New OleDbAdapter
adapter.SelectCommand=commandResult
adapter.Fill(ds)
Dim report As New CrystalReport1
report.SetDataSource(ds.Tables(0))
Form.CrystalReportViewer1.ReportSource=report
Form.CrystalReportViewer1.Refresh()
This is done assuming that you have done the rest of the things, like connecting to the Database and other necessary things successfully.