When I execute the following code against a database
conn = database('WavePlan', '', '');curs=exec(conn, 'SELECT ALL POOL_PT,SUM(CASES) FROM ALLOCATION ');curscurs.message
I receive the following result
curs = Attributes: [] Data: 0 DatabaseObject: [1x1 database] RowLimit: 0 SQLQuery: 'SELECT ALL POOL_PT,SUM(CASES) FROM ALLOCATION ' Message: [1x161 char] Type: 'Database Cursor Object' ResultSet: 0 Cursor: 0 Statement: 0 Fetch: 0 curs.message= [Microsoft][ODBC Microsoft Access Driver] You tried to execute a query that does not include the specified expression 'POOL_PT' as part of an aggregate function.
Best Answer