Hi all,
I am new to VBA and hope you can assist.
I have a database with,
1. Around 50 - 1000 tables of the same data structure.
2. Each week the number of tables differ.
3. All the tables start with CustAcctXXX where XXX is the number eg CustAcct123, CustAcct456 and so on...
I need to append all the records in these tables into a MAIN Table. No PK is needed. Creating the append queries is very time consuming and not effective because the number of tables differ each week.
Is there a way to loop through the database for these tables and append the records into the MAIN table using VBA?
Many thanks for your help in advance.
Regards,
Lobbie168
I am new to VBA and hope you can assist.
I have a database with,
1. Around 50 - 1000 tables of the same data structure.
2. Each week the number of tables differ.
3. All the tables start with CustAcctXXX where XXX is the number eg CustAcct123, CustAcct456 and so on...
I need to append all the records in these tables into a MAIN Table. No PK is needed. Creating the append queries is very time consuming and not effective because the number of tables differ each week.
Is there a way to loop through the database for these tables and append the records into the MAIN table using VBA?
Many thanks for your help in advance.
Regards,
Lobbie168