?
Solved

How to get data from a paradox table and put it into excel using VB Macro

Posted on 2006-06-06
3
Medium Priority
?
276 Views
Last Modified: 2013-12-25
Hello,
Please do excuse lack of understanding here, but I want to read data directly from a paradox table and display it in Excel. I have found how to use MSQuery, and I can query the database no problem, however what I want to be able to do is run a Macro that will update my spreadsheet with data from the paradox table. My problem is a serious lack of understanding when it comes to programming visual basic, so I suppose I am looking for a starting point more than anything else.
My database tables are in c:\program files\forest\stock\data and I have set up a system dsn called "Paradox" which points to this location.

What i want to do is collect invoice information from the table "histhead.db" and display it in excel, and for the spreadsheet to update with the latest invoice data everytime the macro is run. Really just need a starting point. I have done basic work with VBScript in web applications, but never with Excel.

Please help. Loads of points available.

BD
0
Comment
Question by:b1gd0g
1 Comment
 
LVL 29

Accepted Solution

by:
leonstryker earned 2000 total points
ID: 16842615
You will want to use ADO, here is a sample:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=12050&lngWId=1

Here is a sample of the connections string you should be using:

http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForParadox

Leon

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question