Solved

Accessing fields in a .mdb file without opening MSAccess window application.

Posted on 1998-08-17
2
255 Views
Last Modified: 2011-04-14
How can I open a .mdb(MSAccess) file and get to the individual field entries in my c++ program. What is the name of the Access DLL where the functions are located. My goal is to use the Access DLL without opening the MSAccess window application to get at the information in the .mdb file. I want to be able to get at each record and gather the data from every field in the records. Also, where is the API list of functions for the Access DLL published.
0
Comment
Question by:kns2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
JayMerritt earned 50 total points
ID: 1959322
The term you are looking for is DAO - Data Access Objects.

These are located in:
  \Program Files\Common Files\Microsoft Shared\DAO

Look at the DAO35.hlp for more.

Visual Basic has a lot of documentation on how to get the database schema for an MDB file.
0
 
LVL 1

Expert Comment

by:rlarner
ID: 1959323
Are you _SURE_ you want to do this?  I assume you are not using MS C++ libraries -- otherwise you should be using either the DAO classes or the ODBC classes (e.g. CDaoTableDef will allow you to find out all the fields for a given table in DAO.  You must do something a little more complex for the non-DAO version -- MSDEV 5.0 comes with an example called CATALOG which implements a class that will give you the desired information.)  So far, I have prefered DAO -- it seems to be a more complete implementation.

If you are NOT using MFC, then the name of the dll that you want actually depends on the version of access you want to use.  I can give you a pointer, however -- MS Access is built using something called the Jet database engine.  On my system, I have msjet35.dll, which is what Access 97 uses.  (95 should have msjet30.dll, and 2.0 has msjet20.dll I believe.  I'm not too sure about the last one)  For the API, I am not to sure where to find exact documentation.  I don't actually recommend this solution -- from what little I have seen of the API from stepping through DAO objects, it is not a very pretty interface.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

617 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