create series of queries and apply to diff tables identified using a variablehelp
I have about 16 queries composed of SELECT, UPDATE, MakeTAble and APPEND. The 16 queries make up a process of what we call Classification of Accounts. I have to run these 16 queries in a click of a button. I have 5 diff tables (data from 5 sources: mainframe, dept. input, and so on) where I have to apply the process called Classification of Accounts to these 5 tables.
I think it is cumbersome to create 16 queries and attached them 5 times to my 5 different tables. Is there a better way? Combining them,? it is a requirement to have them stay in their own tables.
Please help. I thought of some function, but functions just return a value and I don't know how to create one but would like to learn with this.
Thank you
I have about 16 queries composed of SELECT, UPDATE, MakeTAble and APPEND. The 16 queries make up a process of what we call Classification of Accounts. I have to run these 16 queries in a click of a button. I have 5 diff tables (data from 5 sources: mainframe, dept. input, and so on) where I have to apply the process called Classification of Accounts to these 5 tables.
I think it is cumbersome to create 16 queries and attached them 5 times to my 5 different tables. Is there a better way? Combining them,? it is a requirement to have them stay in their own tables.
Please help. I thought of some function, but functions just return a value and I don't know how to create one but would like to learn with this.
Thank you
Last edited: