kbWilliamson
Programmer
Greetings:
Someone has likely had this problem before but here goes...
I have a report named rptAudit, built with Crystal 8, that I want to use parameter fields to fill in some information in the title.
At the moment there is only one Parameter field in the Report.
When I run the following code I get an "Invalid Parameter Field Name" error.
If I try to use a ".SetCurrentValue =" it causes an "Invalid Qualifier" compiler
error
Private Sub PrintIt()
Dim strLn1 As String
Dim strLn2 As String
strLn1 = "Division Name"
strLn2 = "Participant Hours and Premiums for CY " & intAudYr
With rptAudit
.ReportFileName = App.Path & "\AuditReport.rpt"
.DataFiles(0) = Mod1.pstrDataLoc
.ReportTitle = strLn1
.ParameterFields(0) = strLn2
.Action = 1
End With
End Sub
How can I set the value of the Parameter field?
Someone has likely had this problem before but here goes...
I have a report named rptAudit, built with Crystal 8, that I want to use parameter fields to fill in some information in the title.
At the moment there is only one Parameter field in the Report.
When I run the following code I get an "Invalid Parameter Field Name" error.
If I try to use a ".SetCurrentValue =" it causes an "Invalid Qualifier" compiler
error
Private Sub PrintIt()
Dim strLn1 As String
Dim strLn2 As String
strLn1 = "Division Name"
strLn2 = "Participant Hours and Premiums for CY " & intAudYr
With rptAudit
.ReportFileName = App.Path & "\AuditReport.rpt"
.DataFiles(0) = Mod1.pstrDataLoc
.ReportTitle = strLn1
.ParameterFields(0) = strLn2
.Action = 1
End With
End Sub
How can I set the value of the Parameter field?