IDataSourceLocator::PromptNew
Opens the Data Link Properties window. Allows the user to select the properties for a new connection. The properties are returned in a connection string.
Syntax
strConnection = objDataLink.PromptNew
Parameters
- strConnections
A string value. Contains the connection string parameters specified in the Data Link Properties dialog window.
Visual Basic 6.0 Example
Dim strConn as String
Dim objDataLinks as DataLinks
Set objDataLinks = New Datalinks
StrConn = ObjDataLink.PromptNew
MsgBox(strConn)
Set objDataLinks = Nothing
Result message box:
Results will vary according to the parameters selected.
"Provider=Microsort.Jet.OLEDB.4.0;Data Source=C:\Program Files\VB98\NWIND.MDB;Persist Security Info=False"