zhangguowu0506
27th September 2008, 06:56
I use the menu of "Query By Easy SQL..." to create a simply SQL,it generate the SQL "SELECT tfacp200.ninv,tfacp200.ttyp,sum(tfacp200.amnt) from tfacp200 group by tfacp200.ninv,tfacp200.ttyp",it can be run normal,but I replace tfacp200.amnt with tfacp200.amth(1),and it generate the SQL "SELECT tfacp200.ninv,tfacp200.ttyp,sum(tfacp200.amth(1)) from tfacp200 group by tfacp200.ninv,tfacp200.ttyp ", it can't be run normal,it show "SQL not correct", but the two fields are double,only the seconds field name contain with parentheses?if I want to sum this filed which name contain with parentheses,what shall I do?who can help me,my email address is:zhangguowu0506@hotmail.com