Hello, I am a little behind with a project and could do with some help / pointers.
I am working with a database that has several thousand tables (yes I know that is a long way from normalized, but it is a professional program and one which I have no option to modify.
The tables are all named as numbers i.e. 1,2 3, etc....
I have a tables called Property, from which I can select all the tables of interest (around 500)
I need to look at every table, go to the last record and copy this record into a new table (so I will end up with a new table with 500 records - those being the last record of each of the individual tables).
I'm guessing I will need to do the following:
1. Create a new table which has fields matching the tables I am looking at (let say I csll it tbl_Master)
2. Open the first table
3 Go to the last record
4. Select the last record
5. Append this record to my tbl_Master
6. go to the next table etc...
I would much appreciate direction / methods / thoughts
Many thanks Mark
I am working with a database that has several thousand tables (yes I know that is a long way from normalized, but it is a professional program and one which I have no option to modify.
The tables are all named as numbers i.e. 1,2 3, etc....
I have a tables called Property, from which I can select all the tables of interest (around 500)
I need to look at every table, go to the last record and copy this record into a new table (so I will end up with a new table with 500 records - those being the last record of each of the individual tables).
I'm guessing I will need to do the following:
1. Create a new table which has fields matching the tables I am looking at (let say I csll it tbl_Master)
2. Open the first table
3 Go to the last record
4. Select the last record
5. Append this record to my tbl_Master
6. go to the next table etc...
I would much appreciate direction / methods / thoughts
Many thanks Mark