Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2003, 04:52 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default AS/400 program called using vb6

If a program exists on an Iseries box (as/400) and I have to call it using vb 6 how do I do it? I have added the following code but cannot seem to be able to run the program.
In general declarations:
Dim connAS400 As New ADODB.Connection

behind a 'push button'
connAS400.Open "Provider=IBMDA400;Data Source=xxx.xx.xxx.xx;", "", ""

further down the code

Set cmdPrint.ActiveConnection = connAS400
With cmdPrint
     .CommandText = "{{CALL /QSYS.LIB/MYNAME.LIB/PROGRAMNAME.PGM()}}"
     .Prepared = True
     '.Parameters.Append
     .Execute numRecs, adCmdText
End With
 
Old August 25th, 2003, 05:37 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Resolved. Figured out what needed to be done. Thanks for looking.







Similar Threads
Thread Thread Starter Forum Replies Last Post
AS/400 gagiovla SQL Server 2000 8 October 2nd, 2009 11:22 AM
Any new solution to connect AS/400 from VB6 viethan505 Other Programming Languages 0 August 23rd, 2006 09:37 PM
New solution to connect AS/400 from VB6 viethan505 SQL Server 2000 0 August 22nd, 2006 04:25 AM
Working with Excel from VB6 program aarmit10 Pro VB 6 0 March 17th, 2006 06:36 AM
AS/400 and VB6.0 - Deep in the “ol” Kim chi!!!! kf4rrm Pro VB Databases 0 March 14th, 2005 11:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.