I am trying to loop through about 100 tables. Each named tblCopy1 ,tblCopy2 and so on.
I have an append query that hits each of these tables one at a time and appends data to a different table. How can I use the 1 query and pass into it the name of the table.
example
INSERT INTO tbl2Column ( [CPT4 Code], ESI ) SELECT tblCopy1.[CPT4 code], tblCopy1.[Procedure # 1] FROM tblCopy1 WHERE (((tblCopy1.[Procedure # 1]) Is Not Null));
I need to change tblCopy1 100 times.
I have an append query that hits each of these tables one at a time and appends data to a different table. How can I use the 1 query and pass into it the name of the table.
example
INSERT INTO tbl2Column ( [CPT4 Code], ESI ) SELECT tblCopy1.[CPT4 code], tblCopy1.[Procedure # 1] FROM tblCopy1 WHERE (((tblCopy1.[Procedure # 1]) Is Not Null));
I need to change tblCopy1 100 times.