SELECT DISTINCTROW ACBASIC.Description, "(SQL)" AS Useage
FROM ACBASIC
where Right([description],5)="(sql)"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "COLLECTION" AS Useage
FROM ACBASIC
where Right([description],10)="collection"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "OBJECT" AS Useage
FROM ACBASIC
where Right([description],6)="object"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "FUNCTION" AS Useage
FROM ACBASIC
where Right([description],8)="function"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "PROPERTY" AS Useage
FROM ACBASIC
where Right([description],8)="property"
UNION
SELECT DISTINCTROW ACBASIC.Description, "METHOD"    AS Useage
FROM ACBASIC
where Right([description],6)="method"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "EVENT"       AS Useage
FROM ACBASIC
where Right([description],5)="event"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "ACTION"       AS Useage
FROM ACBASIC
where Right([description],6)="action"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "SUMMARY"       AS Useage
FROM ACBASIC
where Right([description],7)="summary"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "OPERATOR"       AS Useage
FROM ACBASIC
where Right([description],8)="operator"
UNION 
SELECT DISTINCTROW ACBASIC.Description, "STATEMENT"       AS Useage
FROM ACBASIC
where Right([description],9)="statement"
UNION SELECT DISTINCTROW ACBASIC.Description, "OTHER"      AS Useage
FROM ACBASIC
where 
     Right([description],10)   not in ( "collection")
and  Right([description],9)    not in ( "statement")
and  Right([description],8)    not in (function","property","operator")
and  Right([description],7)    not in ( "summary")
and  Right([description],6)    not in ( "method","action","object")
and  Right([description],5)    not in ("event","(sql)");
