?
Solved

VC++6.0 - Problem connecting to MS-Access 2000 database

Posted on 2003-02-23
2
Medium Priority
?
230 Views
Last Modified: 2010-04-17
Hi,
I am trying to create new DAO class (from Visual Studio classwizard) to connect to Access 2000 database.  Since MFC 6.0 uses DAO 3.5 and Access 2000 uses DAO 3.6, I did add the following line to the 'initinstance' fuction so that I can use DAO 3.6.
AfxGetModuleState()->m_dwVersion = 0x0601;

But still when I try to create a new class (using class wizard) derived from CDaoRecordset class, I get the error message saying 'unrecognized data format'. Do I have to do anything else to use Access 200 database. I did select dynamic MFC library linkage while creating the project.

Thanks,
Sadanand
0
Comment
Question by:sadanand78
[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 16

Accepted Solution

by:
twalgrave earned 150 total points
ID: 8009770
0
 

Author Comment

by:sadanand78
ID: 8014080
Hi,
Thanks twalgrave. I tried the same. The steps work if you try to create a DAO object through your code (hardcoded). I get same error('unreocognized format') if I try to add a new DAO class through the class wizard even after following all the steps.

Thanks,
Sada
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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