Cheers,
I have an Access 2007 application that uses mostly vb.net code to create an excel spreadsheet with all the necessary data in the right places...
The program uses a specific set of data that resides in a different database. What I would like to do is connect to the foreign table (which I can do with .Connection) then run a something like .execute on a QueryDef with a 'select x into y' type statement, or some other copy statement. Where the table created would exist in currentdb.
It would be satisfactory to create a link to the foreign table via code but the link would have to be dynamic where I could select one from many tables (each table has one year of data). Then I could use a simple .execute on the QueryDef.
I am able to create a table via DAO.TableDef with .CreateTableDef and then run through each record of the ADODB.Recordset collection but that would take a while to complete and would be much longer than a simple select into statement or some other copy process.
Thank you in advance for any assistance,
Bob
Software/Hardware used:
ASKED:
June 22, 2009 9:55 PM
UPDATED:
June 23, 2009 2:46 PM