PDA

Click to See Complete Forum and Search --> : Connecting to AS/400 from VB


Christine
Aug 1st, 2000, 08:10 PM
Has anyone tried using the IBM OLEDB Provider?
I am able to connect to AS/400 and I can insert records into the file but thats it. I cannot select records.
I am using the following syntax to select from a file
Set adorecordset = adoconn.execute "Select * from LibName.FileName".
When this execute the app blows up.
I have Client Access installed on my PC V3r1m3.

Does anyone know where I could find a driver?
I am also having no luck using odbc - IBM's Client Access Driver.
Any Suggestions?
Thanks
Christine

ledger
Aug 2nd, 2000, 05:43 AM
I have not tried the method you mentioned.

The easiest way I found was to create an Access database as an intermediate step. ie. a local mdb file that contains linked tables to the AS/400 using the client access driver.
Then run the query on the linked tables.

I know this isn't brilliant but it works.