Thanks for your reply
i tried it but it is not working
In my subreport i created the formula field and just typed the 'NAME' which is the variable declared in main report and it is showing error
I tried in the following way
1.In Main Report I created a formula field 'TEST' and declare the following code like:
shared numbervar NAME:={DTM200QTY}
2.In sub report I Created a formula field 'TEST' and declare the following code like:
NAME //which is shared variable in main report
It is showing error then i change this formula in this way in the sub report
shared numbervar NAME:= NAME//variable from main report i think so
NAME-{DTM20QTY}//sub report total field
i place it in sub report it is showing only the sub report field value {DTM200QTY} but not the difference of the shared variable and the subreport field
how should i get this