By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

How can I pass Date-Range to crystal reports in

P: 106
I have created Crystal Report to display data between two dates.
From a vb Form, I need to pass the m_minDate and m_maxDate as the date range to Parameter 'MyDateRange'. I am struggling to know how to do this.

I have tried to search on ParameterRnageValues, but struggling to understand.

For another report, I can pass single values with the code:
Expand|Select|Wrap|Line Numbers
  1. Dim rptViewer As New rptNamazTime
  3. rptViewer.DataSourceConnections.Clear()
  4. rptViewer.DataSourceConnections.Item(0).SetConnection("server", "dbname", False)
  6. ' Set Database Logon Details 
  7. rptViewer.SetDatabaseLogon("login", "password", "server", "dbname")
  8. rptViewer.SetParameterValue("SelectMonth", m_theMonth)
  9. crvNamazTime.ReportSource = rptViewer
May 9 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.