I have a VBA form with an "Export Table" button on it for exporting the currently linked tables to another database. The user choses the path for the destination database using a Browse button.
The problem is when I use either 'Copyobject' or 'Transferdatabase acExport' commands VBA only transfers the links not the table. So I did it in 3 steps
1) Import the linked tables into the current database.
2) Export these imported tables to the destination database.
3) Delete the imported tables from the current database.
Now the problem is in the first step. How do I find the path of the currently linked tables so I can do a 'TransferDatabase acImport' ? Currently I have the path hard-coded in the code which I don't like.
Also is there a better way to do what I am trying to do above i.e. export tables ?
Please help..this is urgent and I already have wasted a lot of time experimenting and trying to figure it out.
Thanks in advance !!
The problem is when I use either 'Copyobject' or 'Transferdatabase acExport' commands VBA only transfers the links not the table. So I did it in 3 steps
1) Import the linked tables into the current database.
2) Export these imported tables to the destination database.
3) Delete the imported tables from the current database.
Now the problem is in the first step. How do I find the path of the currently linked tables so I can do a 'TransferDatabase acImport' ? Currently I have the path hard-coded in the code which I don't like.
Also is there a better way to do what I am trying to do above i.e. export tables ?
Please help..this is urgent and I already have wasted a lot of time experimenting and trying to figure it out.
Thanks in advance !!