Hi Albert,
Maybe it's the same bug as described in
Re: Problem with Print When Logic and report variables Message #
1248504 ?
>
>We found out the following:
>If we use data from the last record of the cursor, it is printed, but can't be used in a function.
>
>example: expression = cursorname.year
>2008 is printed for the last record.
>if we code something like: if cursorname.year = 2008 in the print when condition nothing is printed ???
>(but no error)
>
>So the problem could be that we want to print something like cdow(cursorname.year,cursorname.month,cursorname.day)
>and this function crashes on the last page when there are no detail records on this page because cursorname.year = ?
>
>Sounds strange.
>
--sb--