Re: Expression Evaluator Failed in TOTAL ON command by Fred
Fred
Thu Oct 13 10:15:46 CDT 2005
Then what is it it's trying to TOTAL if you don't tell it? What if you had
12 integer fields, 3 other numerics, etc.?
--
Fred
Microsoft Visual FoxPro MVP
"Bernhard Sander" <fuchs@individsoft.de> wrote in message
news:u%23HHqt9zFHA.3756@tk2msftngp13.phx.gbl...
> Hi Fred
>
>> You can't TOTAL a date field. Try doing TOTAL ON myinteger TO testtotal
> I did not test it, but why should it not work? The ON field is the
> grouping field, not the field(s) that will be totaled.
>
> From VFP 9 help:
> TOTAL TO TableName ON FieldName [FIELDS FieldNameList] [Scope]
> [FOR lExpression1] [WHILE lExpression2] [NOOPTIMIZE]
>
> Parameters
> ...
> FieldName
> Specifies the field on which the totals are grouped. The table must be
> sorted on this field, or an open index or index tag must have this field
> as its key expression.
>
> FIELDS FieldNameList
> Specifies the fields to be totaled. Separate the field names in the list
> with commas. If you omit the FIELDS clause, all numeric fields are totaled
> by default.
>
>
> Regards
> Bernhard Sander