I have a table that identifies the table name, Key field and a inventory ID value which I can use to identify what tables I would need to use in a union query in order to pull all records by asset type (table). I there a way I can use this table to loop through each record in the table to build my union query instead of manually creating. This way, if we add another asset type, I would not have to modify the union query, it would dynamically include it once it was added.