Solved

Crystal reports Viewer error: this array must be subscripted

Posted on 2004-10-20
8
1,821 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
  • 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 500 total points
ID: 12356930
Is your parameter in Crystal defined to allow multiple discrete values?
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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