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
Solved

getting error on crystal report (DISP_E_BADINDEX)

Posted on 2008-10-26
2
1,175 Views
Last Modified: 2010-07-27
trying to set parameter value for report using

rptLoad(rptPath)    ' path has been set correctly
rpt.setparametervalue("{policyno}", policyno)

On Setparametervalue line" I get error

error on report: Invalid Index. (Exception from HRESULT: ox8002000B (DISP_E_BADINDEX)
0
Comment
Question by:jbh_blue
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22819124
Try

rpt.setparametervalue("policyno", policyno)

or

rpt.setparametervalue("{?policyno}", policyno)

mlmcc
0
 

Author Closing Comment

by:jbh_blue
ID: 31510197
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

861 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