hi
i think the following code would help you
i tried and it is working
This code you write in button click event.
Make Data base connection
In data base connection and in the sql query pass the parameter from text box or combo or other controls.
data adapter is filled with data set
like da.Fill(ds,"table Name")
dt = ds.tables("Table Name")
where dt = object of Data table.
declared as dim dt as new Datatable
c1.set Data source(dt)
c1.refresh()
here C1 is object of Crystal report
declared as
dim c1 as newCrystalreport
Crystalreportviewer1.reportsource=c1