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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store a field from the crosstab to an array

Status
Not open for further replies.

crystalreport85

Programmer
Sep 27, 2010
51
CA
I get error 'A Cross-tab row has been specified on a non-recurring field' when add the following code to one of the row field
Local StringVar sWinNo := Trim(Mid({Ord_Cfgt.Ship_Via_Name},11,10)) ;
WhilePrintingRecords;
Shared StringVar Array ArrWinNo;
If UBound(ArrWinNo) = 1 And Minimum(ArrWinNo) = "" then
ReDim ArrWinNo[1]
else
ReDim Preserve ArrWinNo[UBound(ArrWinNo) + 1];

ArrWinNo[UBound(ArrWinNo)] := sWinNo;


What could be the problem ?
Thank you
 
Crosstabs are based direclty on the detail records. You are trying to get Crystal to do something it isn't built for. It works by fixed cycles.

It isn't a full programing language: that's the price you pay for a software tool that can be used to produced a nice-looking report very quickly.


[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top