Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Linking the tables using DSN file through VBA

$
0
0
Hi,

We have a access file in a shared folder where busines users open it through citrix site. The backend for this app is SQL server and used to link the tables with DSN file through 'table link manager'.
The DSN file looks as below:
[ODBC]
DRIVER=SQL Server
UID=user1
PWD=password1
DATABASE=MyDB
APP=Microsoft Office 2005
SERVER=111.111.111.111,53314
I want to write VBA code to read this DSN file from shared location and link the tables automatically whenver the user tries to open the access file. VBA code should read server details and login details for linking the tables.

Can you please help me out as I am new to VBA. Thanks in advance.

Viewing all articles
Browse latest Browse all 13329

Trending Articles