Guest_imported
New member
- Jan 1, 1970
- 0
Anyone got any ideas on how to use aggregate functions in SQL like COUNT, SUM and AVERAGE to query Action Request System tables from VB or MS Query?
I'm using VB 6.0 ADODB and can successful retrieve records but cannot use aggregation in the SELECT statement. For example (MS Query):
SELECT Count(XX_HelpDesk."Ticket No." 'Countresult'
FROM XX_HelpDesk XX_HelpDesk
WHERE (XX_HelpDesk.Product='ORACLE')
returns error:
Expected lexical element not found <identifier>
I'm using VB 6.0 ADODB and can successful retrieve records but cannot use aggregation in the SELECT statement. For example (MS Query):
SELECT Count(XX_HelpDesk."Ticket No." 'Countresult'
FROM XX_HelpDesk XX_HelpDesk
WHERE (XX_HelpDesk.Product='ORACLE')
returns error:
Expected lexical element not found <identifier>