>Hi Fred
>
>IMO that's because SQL opens tables with its own aliases for its own purposes. While the query code is executing, the alias that you specify in a function may not be the alias that SQL has assigned.
That is correct. There is no way for you to know what the internal alias the SQL SELECT statement is using.