fioracasey
Programmer
I have set up several queries that run one after another.
1st macro imports an excel spreadsheet
2nd macro selects certain data and makes a temp table
3rd macro selects the temp table and another table from the database and combines it into a new temp table.
When I run them one at a time by clicking on them, they run fine. But, when I run them from the macro, it appears that the 2nd macro is is duplicating the data that it is grabbing. I don't understand it. I am sure that they worked correctly from the macro when I first created it.
I am using OpenQuery, view is datasheet and datamode is edit.
Any ideas? Thanks.
1st macro imports an excel spreadsheet
2nd macro selects certain data and makes a temp table
3rd macro selects the temp table and another table from the database and combines it into a new temp table.
When I run them one at a time by clicking on them, they run fine. But, when I run them from the macro, it appears that the 2nd macro is is duplicating the data that it is grabbing. I don't understand it. I am sure that they worked correctly from the macro when I first created it.
I am using OpenQuery, view is datasheet and datamode is edit.
Any ideas? Thanks.