I think is more easy :
public acTotal[1] &&Array!
pcValue = Thisform.pageframe1.page2.sz1.displayvalue
SELECT SUM(data1.total) ;
FROM lumber!data1 ;
WHERE siz = pcValue ;
INTO ARRAY acTotal
Note: Perhaps it is necessary to create the variable in the generator of reports (by variables) to be able to print it.
The Life is Beautiful!
Programmer in
Delphi, VS.NET
MCP