Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Connect to IBM i (AS/400)

Connect to IBM i (AS/400)

Connect to IBM i (AS/400)

I have a lot of Excel files with VB macro that connect to IBM i.
I connect to IBM i with this string
Function open_con()
cnMYAS400.Open "provider=IBMDA400;data source=;User Id=myuid;Password=mypwd;"
Set cmMYSQLCMD.ActiveConnection = cnMYAS400
End Function

They are stop to run on Windows 10.
The error is '3706 - provider cannot be Found. I may not be properly installed.'

Is it possible to connect to IBM i?
How to do it?
Thank you

RE: Connect to IBM i (AS/400)


1) I assume that you have a reference set to the ActiveX Data Objects (ADO) object library. Maybe not. If not Tools > References... Microsoft ActiveX Data Objects m.n Library

2) I assume that you need to supply a user I'd and password in your connection string, myuid and mypwd, so...


X = "...;User ID=" & myuid & ";Password=" & mypwd & ";" 


glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Connect to IBM i (AS/400)

I supplied id and password, also marked all data library on reference tab.
The problem is IBM do not support connection like they do before.
I asked is it any way to go around it with IBM CA Solution?

RE: Connect to IBM i (AS/400)

Having IBM Client Access installed on my PC, this works to connect to iSeries:


'## Enter Login-Data

'## using ADO
' Connection String
connection_string =  "PROVIDER=IBMDA400;DATA SOURCE=" & csebk & _
                     "; USER ID=" & userid & "; PASSWORD=" & pwd

' Open ADO connection 
set connection = CreateObject("ADODB.Connection")


' Close Connection

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close