Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Data Link Properties Programmatically?

Status
Not open for further replies.

HardingR2000

Programmer
Oct 6, 2008
40
US
Is it possible to determine programmatically the connection information as specified in the "Data Link Properties" wizard from within the ADP application?

I need to programmatically alter the "Initial Catalog" specified in the following when the the database is changed.

NGMSConnect.Open "Provider='SQLOLEDB';Data Source='SVR-NATGAS';" "Initial Catalog='NGMSData';Integrated Security='SSPI';
 
Code:
With CurrentProject
  Debug.print .BaseConnectionString
  Debug.print .AccessConnection
  Debug.print .Connection
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top