hello
I am archiving experimental data that is held if over 2550 tables like this...
TestData_1a
TestData_1b
TestData_1c_Ron
TestData_2_Sue
TestData_3a_part1
etc....
I want these tables renamed as....
TestData_0001_of_2550
TestData_0002_of_2550
TestData_0003_of_2550
...
TestData_2550_of_2550
The numbering order of these tables is exactly the same as it was in the original listing.
All of the tables have exactly the same structure, differing only in data and table name.
In fact, not all 2550 tables are in the same mdb file, but I can work around that.
I hope to automate this by using VBA to build and run a queryDef that loops 2550 times. On the 30th iteration, for example, I'd like ...
SELECT * FROM [the name of the 30th table in the list] INTO [the new table name, TestData_0030_of_2550] ....
I guess my main problem is knowing how to refer to, say, the 30th table listed.
Any help with this is appreciated
Vicky
I am archiving experimental data that is held if over 2550 tables like this...
TestData_1a
TestData_1b
TestData_1c_Ron
TestData_2_Sue
TestData_3a_part1
etc....
I want these tables renamed as....
TestData_0001_of_2550
TestData_0002_of_2550
TestData_0003_of_2550
...
TestData_2550_of_2550
The numbering order of these tables is exactly the same as it was in the original listing.
All of the tables have exactly the same structure, differing only in data and table name.
In fact, not all 2550 tables are in the same mdb file, but I can work around that.
I hope to automate this by using VBA to build and run a queryDef that loops 2550 times. On the 30th iteration, for example, I'd like ...
SELECT * FROM [the name of the 30th table in the list] INTO [the new table name, TestData_0030_of_2550] ....
I guess my main problem is knowing how to refer to, say, the 30th table listed.
Any help with this is appreciated
Vicky