Solved

Crystal reports Viewer error: this array must be subscripted

Posted on 2004-10-20
8
1,807 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
 
LVL 1

Author Comment

by:LFMSupport
ID: 12356949
Sorry, no its not.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now