Linking Access tables with SQL tables using File DSN through VBA

pradeep.atta

New member
Local time
Today, 06:28
Joined
Jan 8, 2013
Messages
2
We have an ms access application and tables in that are linked with backend database SQL SERVER 2008

I used to manually link the access tables with SQL tables with the help of 'Table Link Manager' option. Now I want to do this programatically.

File DSN will contain belo information:
Code:
[ODBC]
DRIVER=SQL Server
UID=user1
PWD=password1
DATABASE=MyDB
APP=Microsoft Office 2005
SERVER=111.111.111.111,53314

My VBA code has to read this file DSN from the shared path and link the tables. Can you please provide the VBA code?
 

Users who are viewing this thread

Back
Top Bottom