Home > Forum Home > Automating Data Analysis Tasks > Using Excel to connect to AS400 database to retrieve data | Share |
Forum Topic | Post Reply Login |
Using Excel To Connect To As400 Database To Retrieve Data | Rate this: (3/5 from 1 vote) |
Hi All, I am a new VBA programmer. I hope someone can help me. I am trying to use Excel to connect to a AS400 and run a query with parameter to download some data. I copy some codes from the Internet but when I run the codes, it gave me the following error message "Compile error. User defined type not found" It highlight the codes "Dim cnnConnect As ODBC.Connection" Any response is very much appreciated. My codes as follows: VBA Code:
| |||
Daivd Ong | |||
Posted by davidong328 on |
Replies - Displaying 1 to 1 of 1 | Order Replies By: Most recent | Chronological | Highest Rated |
Rate this: (3/5 from 1 vote) VBA Code:
With: VBA Code:
You will also need to make this change with the declaration of the Recordset object. | |||
Excel Business Forums Administrator | |||
Posted by Excel Helper on |
Displaying page 1 of 1 |
Excel templates and solutions matched for Using Excel to connect to AS400 database to retrieve data:Solutions: Pricing and Breakeven Analysis Database Report Builder Stock Trading System Spread Trading System Batch Replace Tools Project Planner Statistics Training Useful Add-ins OPC Data Connection Dependency Auditing OCX Office Viewer Component Spreadsheet Search Functions and Formulas SQL Statements Cube Functions |