Solved

AS400 to VB6 via ADO

Posted on 2000-05-03
2
468 Views
Last Modified: 2012-06-27
I use Visual Basic 6 and Client Acess Express V4R4.
When I try to create the Connection String for the ADO and I use the build button I choose the
IBM AS400 OLD DB Provider, and a Data Source then I click on the test connection button and its work.
But, when I click on the OK button
and return to the property page, the text box of the Connection String is
empty.
How should I write the Connection String
to use this provider?

Thank you.
Hezi
0
Comment
Question by:Hezi
  • 2
2 Comments
 

Accepted Solution

by:
ulfie earned 100 total points
ID: 2789238
Public cnYourAS400 As New ADODB.Connection
Public ixYourAS400 As New AD400.Connection

cnYourAS400.Open "Provider=IBMDA400;Data Source=YourAS400;", "", ""
ixYourAS400.Open "BVRAS01", "", ""

This will make the connection to the AS/400.

If you want more information go to http://www.as400.ibm.com/clientaccess/oledb/.

This method works in either VB 5 or 6.

0
 

Expert Comment

by:ulfie
ID: 2789252
Note: Change BVRAS01 to your AS/400 name.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question