私はこのコードを書いていますが、このエラーがあります。
「実行時エラー '20553': パラメータ フィールド名が無効です」
誰でも私がそれを解決するのを助けることができますか?
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