I need to connect to As400 via vba excel macro. I am using the following connection string:
strCon = "PROVIDER=IBMDA400;DATA SOURCE= xxxxx" & "; USER ID=" & UserId & "; PASSWORD=" & pwd
con.Open strCon
But i am getting following error. Can someone help me in figuring out if i need to make any additional settings to y macro or if my connection string itself is incorrect.
Did RockBoro sugestion help you fix your problem? If not you may want to try another avenue to test the signon process use this string I have tested successfully (which my ip of course). Con.Open "provider=IBMDA400;data source=89.31.143.1"
if a manual sign on screen opens you know there is a problem with the signon to your system.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.