Solved

CRecordset problem... When trying to Open,it says ODBC driver doesn't support Dynasets

Posted on 2000-03-30
3
218 Views
Last Modified: 2013-11-20
Do you know what is the problem?

How can I read and write to fields in a Recordset without the need of deriving a CRecordset class?

Thanks in advance
Skel
0
Comment
Question by:skel
3 Comments
 
LVL 4

Accepted Solution

by:
inpras earned 100 total points
ID: 2671929
Hi
CRecordset rs;
rs.Open(CRecordset::dynaset, "SELECT * FROM MyTab", none);
and access the fields

to update
CDatabase db;
db.Open(...);
db.ExecuteSQL("UPDATE TABLE tab1 SET...");

Hope this helps
inpras
0
 

Expert Comment

by:ycl
ID: 2672138
Yes,use SQL clause is a effective way.
0
 

Author Comment

by:skel
ID: 2675125
But when I use rs.Open(CRecordset::dynaset, "SELECT * FROM MyTab", none); I get the error that ODBC Driver doesn't support dynasets....

Finally I'm trying using DAO... I have more experience on that

Skel
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 103
Unix / Linux grid computing 5 155
maxBlock challenge 30 128
Message not shown 5 49
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

785 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