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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing values to generate reports

Status
Not open for further replies.

sandyas

Programmer
Apr 20, 2006
31
US
Hi,
I have created a crystal report. Now I need to generate that report by filtering it. The filteration values are entered in a VB form like ID and a date range. How do I pass these values so that the records needed are printed and not all of them. My VB code is as follow:

Private Sub Command1_Click()
CrystalReport1.ReportFileName = "C:\aporeport.rpt"
CrystalReport1.Action = 1
End Sub
Any help would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top