Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Error

Status
Not open for further replies.

IceRuby

Technical User
Jan 20, 2004
85
AU
ODBC link to SQL 2000 database. Using Crystal 11

Performing conversion to "hour values" from database so can have crystal perform sum calc.

Formula is
if isnull({t510_payroll_transaction.t510f120_hours}) then 0
else
(
val(split({t510_payroll_transaction.t510f120_hours},":")[1])*60 +
val(split({t510_payroll_transaction.t510f120_hours},":")[2])
)/60

when applying summary receiving error:-
"Subscript must be between 1 and the size of array"

Crystal interprets initial Hours field as String value

Appreciate your help
 
Thanks but fixed. Issue created only when applied within Grouping.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top