Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Opening MSAccess and entering data into a record

Is there any way to do this from within VC++?  

Thanks
0
galneweinhaw
Asked:
galneweinhaw
1 Solution
 
AndyAinscowCommented:
Yes - look at the CDaoDatabase and CDaoRecordset classes with MFC (specific to Access databases).  There are also numerous examples demonstrating this that come with Visual C++

DAO Database Class Samples

DAOCTL shows how to build an OLE control container which contains data-bound controls. The container provides the controls with data from an Access database via DAO

DAOENROL is a sample that is based on the ENROLL sample, but migrated to the DAO database classes. DAOENROL also functions as Step 4 of the DaoEnrol tutorial.

DAOTABLE demonstrates using the MFC Data Access Objects (DAO) database classes to create common database objects: databases, tables, queries, fields, and indexes.

DAOVIEW is a moderately sophisticated browser that lets you examine the schema of a database.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now