Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal reports Viewer error: this array must be subscripted

Posted on 2004-10-20
8
Medium Priority
?
1,867 Views
Last Modified: 2012-08-13
Hello all,

When trying to pass parameters through a VB 6 application into the crystal reports viewer i get the error "This array must be subscripted. For example: Array[i]."

Any help appreciated,
Wilky.
0
Comment
Question by:LFMSupport
[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
  • 4
  • 3
8 Comments
 
LVL 28

Expert Comment

by:bdreed35
ID: 12356875
How is the parameter defined in Crystal? (Datatype, Values excepted - Discrete, Range, or both, )
What is the actual data you are trying to pass to the parameter from your VB app?
0
 
LVL 1

Author Comment

by:LFMSupport
ID: 12356910
Im passing through 2 Numeric values and a Date value, both of which are discrete.

Thanks for the reply and forgive me if I don't get back to you until tomorrow, if going home for the day.

Cheers,
Wilky.
0
 
LVL 28

Accepted Solution

by:
bdreed35 earned 1500 total points
ID: 12356930
Is your parameter in Crystal defined to allow multiple discrete values?
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
LVL 1

Author Comment

by:LFMSupport
ID: 12356949
Sorry, no its not.
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 12356975
Change it in Crystal to allow multiple discrete values and retest your app.
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12357361
bdreed is correct - the param must be set to allow multiple values.  If after making that change you're still getting the error please post the code you're using to pass the parameter.
0
 
LVL 1

Author Comment

by:LFMSupport
ID: 12368151
Ok, I've deleted the date parameter as it wasn't important anyway. The two numeric parameters can't accept multiple discrete values as the parameters were set when i made the command for the report.

Does this make it any clearer or do you want to see the code?

Thanks again,
Wilky.
0
 
LVL 1

Author Comment

by:LFMSupport
ID: 12368345
Got it,

thanks,
Wilky.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

670 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