That fixed it! Thanks Mark!
>The
create sql view may be stepping on your cursor of table_names (i.e., closing the cursor. you might try adding a Select 0 command on the line before the
command. You should also pass a 3rd parameter in the SQLTables() function which would be the name of the cursor to place the results in.
>
--Todd Sherman
-Wake Up! Smell the Coffee!