SouthwestNut
Programmer
First of all, I know that there are a multitude of questions and answers on this topic in Tek-Tips. The problem is that while it appears to work for all others ... it doesn't work for me.
I am using VB 6.3 (through Access) and Crystal Reports 9
The standard answer has been what is below
Dim app As New CRAXDRT.Application
Dim rpt As CRAXDRT.Report
Set rpt = app.OpenReport(strRpt)
rpt.ParameterFields.SetCurrentValue (SOME VALUE)
The reports always run fine, are pdf'd in the correct directory, but the pdf's always show the same parameterized version (what was last saved).
I read on one of the threads to include rpt.DiscardSavedData , but that did not solve the problem.
Any suggestions are appreciated on how to have CR recognize the parameter
I am using VB 6.3 (through Access) and Crystal Reports 9
The standard answer has been what is below
Dim app As New CRAXDRT.Application
Dim rpt As CRAXDRT.Report
Set rpt = app.OpenReport(strRpt)
rpt.ParameterFields.SetCurrentValue (SOME VALUE)
The reports always run fine, are pdf'd in the correct directory, but the pdf's always show the same parameterized version (what was last saved).
I read on one of the threads to include rpt.DiscardSavedData , but that did not solve the problem.
Any suggestions are appreciated on how to have CR recognize the parameter