D
dean.brunne
Hi- We have a third party software for forecasting called ForecastPro
that has an ODBC connection that outputs to our Access database. The
output format has the first field as an INDEX and the remaining fields
as the various product names. There are 20 tables in the same format
not all with the same products. They each have a total field.
I need to create one table for all of this output that has the
following fields:
Customer - name of the table (20 tables each represent different
customers)
Index - from the Index field. (straight forward)
Product - from the fieldnames of each table converted to a record
Baseline Units - the records in the product fields.
I would like to create code to loop through the tables and insert into
one table in another database. I am unsure how to structure the
INSERT INTO sql and unsure how to do it inter database.
Any suggestions would be appreciated.
Cheers,
Dean
that has an ODBC connection that outputs to our Access database. The
output format has the first field as an INDEX and the remaining fields
as the various product names. There are 20 tables in the same format
not all with the same products. They each have a total field.
I need to create one table for all of this output that has the
following fields:
Customer - name of the table (20 tables each represent different
customers)
Index - from the Index field. (straight forward)
Product - from the fieldnames of each table converted to a record
Baseline Units - the records in the product fields.
I would like to create code to loop through the tables and insert into
one table in another database. I am unsure how to structure the
INSERT INTO sql and unsure how to do it inter database.
Any suggestions would be appreciated.
Cheers,
Dean