>It not always will generate an error. Watch for this one: "When using aggregate functions, such as MAX( ), in the SQL SELECT command without a GROUP BY clause, and no matching records are found, Visual FoxPro returns a result set with a single record and _TALLY set to 1. In versions prior to Visual FoxPro 9.0, no records are returned, and _TALLY is set to 0."
Okay, I will keep it in mind, I generally take care not to use a SUM (most used by me) without a group by, but there can be mistakes and maybe it will serve me right to hash the fastest code *g*.