Sounds like myvar isn't numeric. Try issuing myvar=0 or STORE 0 TO myvar before the code in the detail area.
>I am trying to add the values in a number fld in details record
>to a mem var and come up with a total for all the detail records.
>myfld is the value in the fld and has a data type of num 7.1...
>and myvar is - int to myvar = 0 ...
>The code I am using in the detail area is...
>myvar = myvar + myfld..
>The error message I am getting is - OPERATOR/OPERAND TYPE MISMATCH..
>Does anybody have any idea? ... thanks
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.