Re: RE : [development-axapta] sum

2004-01-27 Thread byteway_so
Thanks all! Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Re: [development-axapta] sum

2004-01-26 Thread jesper.joergensen
As you need to return a real not a record. static real MyTotal(Date _dd, Code _cc) { MyTable myTable; ; return (select sum (realfield) from myTable where myTable.Date == _dd myTable.Code == _cc).realfield; } /Jesper Original Message Subject: