?
Solved

How to give a Crystal Report paramater multiple values in Visual basic..

Posted on 2003-03-14
8
Medium Priority
?
316 Views
Last Modified: 2010-05-01
Hey all.. i'm using Crystal reports for the first time here at work.  It's a little tricky but i'm getting the hang of it.  Anyway.. i've written code to make VB pass a value to the paramater instead of having the viewer prompt the user.  the code is like this

Set crpParamDefs = m_crReport.ParameterFields
  For Each crpParamDef In crpParamDefs
     Select Case crpParamDef.ParameterFieldName
     Case "[THE_NAME_OF_YOUR_PARAMETER]"
        Call crpParamDef.SetCurrentValue([THE_VALUE_TO_SET_IT_TO)
       
     End Select
  Next crpParamDef
but here is the question... when i setup the paramater, i set it up to allow for multiple values.. How can i pass it multiple values?  It is my understanding that .SetCurrentValue only passes 1 value.  Thank for any help.
0
Comment
Question by:pillsbury
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Author Comment

by:pillsbury
ID: 8137946
Please help.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 300 total points
ID: 8138534
Look at

http://support.crystaldecisions.com/library/kbase/articles/c2005825.asp

Use the AddCurrentValue
crpParamDef.AddCurrentValue THE_VALUE_TO_SET_IT_TO
crpParamDef.AddCurrentValue THE_NextVALUE_TO_SET_IT_TO


mlmcc
0
 

Expert Comment

by:CleanupPing
ID: 8900080
pillsbury:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 101

Expert Comment

by:mlmcc
ID: 8906526
Knowledge base article I referred to is
How to pass multiple parameter values to a report at runtime.

It should supply the answer.

mlmcc
0
 

Expert Comment

by:CleanupPing
ID: 9056310
pillsbury:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9061392
My comment should have provided the answer.

mlmcc
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 9699727
Moderator, my recommended disposition is:

    Accept mlmcc's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question