Hi,
I have a problem here with Crystal Report.
I have designed the report with several formula variable, and it works just well in my local computer. And then I uploaded it to the Crystal Report Server, but it doesn't work there. This is the error shown:

Code:
Error in formula . 'if RecordNumber > 0 Then ' This field name is not known. Details: errorKind
So I take a look at a formula variable, and I find this formula variable named totalRecords:

Code:
if RecordNumber > 0 Then
    OnLastRecord
    if IsNull ({Command.ORIG_COUNTRY}) then
        formula = 0
    else
        formula = Count ({Command.ORIG_COUNTRY})
    end if
Else
    formula = 0
End If
This 'RecordNumber' is a built-in formula variable reserved by Crystal Report, right? but why doesn't it recognize this variable now?

Any ideas?

Thanks,
Iwan Satria