Solved

AS400 to VB6 via ADO

Posted on 2000-05-03
2
455 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
Comment Utility
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
Comment Utility
Note: Change BVRAS01 to your AS/400 name.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Restoring V6R1 Data to V5R4? 4 207
rpg d specs 5 75
iSeries FTP Exit Program 8 113
RPG Free Prototypes using  *LDA data 5 149
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now