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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection Wizard

Status
Not open for further replies.
Are you looking for help in building a connection string?
 
I think that the only way that you can open the connection dialog of the Data Environment from a VB application is if the application is a VB add-in. The dialog is strictly an IDE entity and is not available for distribution. Are you trying to create an add-in that opens a connection string generation dialog? Neil Konitzer, President
Freisoft
 
Hi,

thanks for your input. I did find a way in the end though.

You need to set a reference to Microsoft OLE DB Service Component 1.0 Type Library. This gets shipped from MDAC 2.1 and above I believe.

You then can use the following code:

Code:
Dim dlNew As DataLinks
Dim cnNew As ADODB.Connection
Dim strConnectionString as string

Set dlNew = New DataLinks
        
Set cnNew = dlNew.PromptNew
strConnectionString = cnNew.ConnectionString

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top