ringbearer
Programmer
I am opening a Crystal Report (v10) from Advantage series (5.3) using an ACCPAC Macro. When I try to set a parameter, it doesn't seem to work (I am still prompted for the parameter value). My code is listed below:-
[/color blue]
If I enter a value for the parameter, it opens & runs just fine.
Can anyone help me???
Code:
Dim rpt As AccpacCOMAPI.AccpacReport
Set rpt = ReportSelect(REPPATH & "\WORKORDER.rpt", "", "")
rpt.SetParam "WONUMBER", "ORDERNUM001"
rpt.NumOfCopies = 1
rpt.Destination = PD_PREVIEW
rpt.PrintReport
If I enter a value for the parameter, it opens & runs just fine.
Can anyone help me???