Help in using data link

datalink , data link , build connection at runtime Philippines
  • 11 years ago
    Im working on with building a database connection at runtime, and i've done it in visual basic 6 using datalink and i only want the connection string from it, but im having a problem getting the connection string using datalink in vb2005, here are some of the code i used: Dim oDataLinks, sRetVal oDataLinks = CreateObject("DataLinks") On Error Resume Next ' Trap Cancel button sRetVal = oDataLinks.PromptNew On Error Goto 0 varConStr = sRetVal ' conversion from type connection to type string is invalid ' if converted to string it only returns "System.__ComObject" oDataLinks = Nothing how can i get the connection string, could someone help me?...i really want to know how...

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves” - Alan Kay