Solved

AS400 to VB6 via ADO

Posted on 2000-05-03
2
469 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?

856 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