I have created a listbox containing all the tables in the database. Each table stores permissions for users for different applications. The adminstrator would like to copy user's permissions to add a new user. Once the user is selected that the administrator wants to use to copy permissions, the list is narrowed down to just those tables that the user exists in. I want to be able to loop through the list and for each selected table, copy the column values and append the column values to the same table but with the new user's userid. Is there a way to do this without running an insert statement that selects all columns individually save the key userid column? Every table has different columns in it. I didn't want to have to create sql for each individual table. I just want to have a single routine that, for each selected value from the list, searches for the CopyUser userid in that record and adds a row for the new user using the CopyUser's record's values.
Any suggestions?
Thanks,
J9
Any suggestions?
Thanks,
J9