p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

crystal_reports thread: Crystal report parameters passing from VB


Message #1 by "Editha M. Dulay" <emdulay@y...> on Tue, 26 Jun 2001 08:13:01
I need to know the syntax on how to pass parameter from VB to Crystal 

report.
Message #2 by "Keith Lee" <kitleeky@m...> on Thu, 28 Jun 2001 14:25:43 +0800
Something like this :-



      Dim CRrpt As CRAXDRT.Report



       with CRrpt

        .DiscardSavedData

        .ParameterFields(1).ClearCurrentValueAndRange

        .ParameterFields(2).ClearCurrentValueAndRange

        .ParameterFields(3).ClearCurrentValueAndRange



        .ParameterFields(1).AddCurrentValue 'ABC'

        .ParameterFields(2).AddCurrentValue Format$(CDate(dStartDate),

"mm/dd/yyyy")

        .ParameterFields(3).AddCurrentValue Format$(CDate(dEndDate),

"mm/dd/yyyy")

   end with





"Editha M. Dulay" <emdulay@y...> wrote in message

news:77273@c..._reports...

>

> I need to know the syntax on how to pass parameter from VB to Crystal

> report.

>

>






  Return to Index