>I check all that, and it still didn't work so I deleted the report and recreated the report. Now it works fine. Thank you for all you help. By the way one more question, if I have a field name like tot_pay, can I do an expression in detail line like tot_pay/percentage? percentage is a variable in my form that I need to divde by for tot_pay amount. Thanks again
>
>Nick Patel
Yes Nick,
You can. Whatever variable is accessible by the routine (procedure, function, method, event) that called report, is accessible by report even if it's defined
local. ie:
* form.somecommandbutton.click
* thisform.text1 and thisform.somecustomproperty exists
local lnPercentage
lnPercentage=200
report form myReport
myReport can use lnPercentage, thisform.text1.value, thisform.somecustomproperty just as if it were part of routine (and in fact it's).
Cetin