Jimmy,
First you don't need public variables, privates will do fine. Second you are using a whole extra process that isn;t needed. Try cod elike this;
PRIVATE pcTotal
SELECT Data1
SUM Total FOR Siz = Thisform.pageframe1.page2.sz1.displayvalue TO pcTotal