Hi
For starters I am working from excel and controlling an Access 2007 database. I am trying to use an INSERT with an rs.execute command to add data into a table in one db into a table in another db.
My problem is that I have two insert queries one right after another (header info and then data). Then a loop to load another text file and do the insert again.
So far my code works great if I step through it using F8, but if I just let it go it only loads the header table and skips the data table. I am guessing that the INSERT has not finished running.
Is there some may to make it wait until the execute is done before moving on?
Thanks
Todd
Here is a sample of my code.
For starters I am working from excel and controlling an Access 2007 database. I am trying to use an INSERT with an rs.execute command to add data into a table in one db into a table in another db.
My problem is that I have two insert queries one right after another (header info and then data). Then a loop to load another text file and do the insert again.
So far my code works great if I step through it using F8, but if I just let it go it only loads the header table and skips the data table. I am guessing that the INSERT has not finished running.
Is there some may to make it wait until the execute is done before moving on?
Thanks
Todd
Here is a sample of my code.