This will not work. Because the column list will have to change based on the table name input by the user. Thanks for replying! Rong