> >
> > VAL(STR()) had a very useful purpose in queries before we had the CAST function. If you needed to make sure a numeric value was a certain width, then this was the only way to do it.
> >
> >
-BP
> > www.peisch.com
>
> Yup - that was the first thing I though - but the field itself is N(10,0) and then he calculates the SUM of that field in a DO WHILE !EOF() loop. I can see no reason for it. For that matter, why not simply calculate the sum in the query. He didn't use any of the other fields. I would hazard a guess that this is simply a copy and paste from another code snippet.
>
> Ken
> You shall know the truth - and the truth shall set you free. (John 8:33)
In that case, there's no excuse!
-BP
www.peisch.com