Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2000-03-30
3
Medium Priority
?
224 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 300 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

773 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