How to pass a Two Date parameter to a report at runtime using VB .NET

R

Raj

hi,

How to pass a Two Date parameter to a report at runtime using VB .NET


1. How do we pass multiple values eg. Startdate, EndDate to crystal
reports
parameter.
2. I have a report to filter by two dates like FromDate And ToDate

my Code is following which i have written.

It shows Error like " Date time Required"

Dim SelectFormula1 As String

SelectFormula1 = "{tblSample_Master.DateOut} in '" & StartDate & "' to '" &
EndDate & "'"

CrystalReportViewer1.SelectionFormula = SelectFormula1

CrystalReportViewer1.RefreshReport()

CrystalReportViewer1().ReportSource =
"D:\KOTITI\RptSummaryReportFromDateToDate.rpt"

thanx
Raj

--
Raj Kumar Mishra
jcast Networks Ltd.
New Delhi.
India.
91-51678212,13,14
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

What are Crystal Reports? OK, I know, but this is not the correct forum to
ask about them. This newsgroup is for Visual Basic as it applies to
Microsoft Word.

Try http://www.crystalkeen.com/articles/crystalreports/newsgroups.htm

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top