Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISAM error:illegal argument to ISAM function

Status
Not open for further replies.
Jan 20, 2004
5
GB
I am using Reports Designer and having problems when summarising certain fields.

I am wanting to select agents from multiple skills but only want to show one record for each agent. I am selecting data from the CAGENT table and want to create the following statement:
select LOGID, WORKMODE, min(AGTIME)
from cagent
where ACD=1 and (SPLIT=2 or SPLIT=3 or SPLIT=9 or SPLIT=29)
group by LOGID, WORKMODE

but this returns the "ISAM error:illegal argument to ISAM function" error.

If I just run it for the agents it works OK:
select LOGID, min(AGTIME)
from cagent
where ACD=1 and (SPLIT=2 or SPLIT=3 or SPLIT=9 or SPLIT=29)
group by LOGID

Can anyone explain why and suggest a fix?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top