Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with recordset

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I have a VB form with a CRViewer on it.

I also have another VB form with a button that says print detail..

I want to print the detail of the recordset returned in the form. I am using the following code:

Dim Report As CrystalReport2

Set Report = New CrystalReport2
Report.Database.SetDataSource rs
frmDetailRpt.CRViewer1.ReportSource = Report
frmDetailRpt.CRViewer1.ViewReport
frmDetailRpt.CRViewer1.Zoom 100


Now it works, but it pulls all the data from the entire table. how can I just set it to display the current recordset? I do have the actual report linked to my sql table..


Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top