I'm in VS2005 accessing an Access 03 mdb file via OLEDb.
I have a series of 6 groups of tables that are structured the same but have slightly different names. In a loop I create a set of SQL statements and then use the Replace() function to modify the table names so I can run the same query on all six sets of tables. This is fairly common for me and I do this a lot in Access with Access VBA. No problems.
One of the things I need to do is create a make table. If I just let the code run freely in a loop, moving through all 6 sets of tables, I don't get the desired results. If I slow down the code with a break line it runs as expected, even if it is only paused for a second.
I guess I need to pause the program flow to give the make table query time to run. What would be the best way to do this?
Greg
I have a series of 6 groups of tables that are structured the same but have slightly different names. In a loop I create a set of SQL statements and then use the Replace() function to modify the table names so I can run the same query on all six sets of tables. This is fairly common for me and I do this a lot in Access with Access VBA. No problems.
One of the things I need to do is create a make table. If I just let the code run freely in a loop, moving through all 6 sets of tables, I don't get the desired results. If I slow down the code with a break line it runs as expected, even if it is only paused for a second.
I guess I need to pause the program flow to give the make table query time to run. What would be the best way to do this?
Greg