pass parameter crystal-Reports-Bericht

Schreibe ich diesen code, aber es haben zu diesem Fehler.

"Run-time error '20553': Ungültiger parameter-Feld mit dem Namen"

kann mir jemand helfen es zu lösen?

With CR

  .ParameterFields(0) = "start;" + CStr(Form1.cmbMonth.Text) & ";True"
  .ParameterFields(1) = "end;" + CStr(Form1.cmbYear.Text) & ";True"

  .ReportFileName = App.Path & "\Report\Report1.rpt"

  .SelectionFormula = "{SW.dtaMonth}>=date('" & Format(Form1.cmbMonth.Text) & "') and {SW.dtaYear}<=date(" & Format(Form1.cmbYear.Text) & ")"

  .WindowTitle = "PG Variable Overhead Report" 'title of report
  .Action = 1 'Will Show The Report

End With
InformationsquelleAutor user692495 | 2012-04-27
Schreibe einen Kommentar