Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding parameters thru VB to Crytal Reports

Status
Not open for further replies.

SouthwestNut

Programmer
Sep 10, 2001
35
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top