>Hi again Steve,
>Sorry for the barrage of questions but I still can't get it to work yet.
>I changed the name to calcrecs() and when I run it it brings up the calcrecs.prg file and shows an error reading "Syntax error" but I am using the a shorter version of the calculation that worked in the expression. It's in this format: table1.field1+table2.field2+table3.field3
>Thanks again for your help!
>Max
>
>>>Hello Max,
>
>>>The expression would be: calculate()
>>>
>>>(you need the parenthesis)
>
>>>I don't know if I would call it calculate though, because that is a reserved word. Make sure the program file is in your path (or in the current directory), >>or you can use the SET PROCEDURE TO myprogram ADDITIVE before running the >>report.
>>>Steve Gibson
No problem, Max. Do something like this.
local lReturnValue
lReturnValue = table1.field1 + table1.field2
return lReturnValue
Steve Gibson