>Can you do that without a function call, like this...
>
>SELECT MAX (date1, date2, date3, date4) as dMostRecent, ...
>
>Otherwise, we'll need to see your function code to see what the problem is.
>
> Jay
You cannot do it this way because foxpro interprets MAX() as SQL Select aggregate function not foxpro MAX() function.
--sb--