Solved

About C_Recordset::Open

Posted on 2003-11-26
2
207 Views
Last Modified: 2013-11-20
Hi,
   i use the ActiveX ADO to a Microsoft access. The Ado object provides a function SetRecordSource to set the SQL command string and the GetRecordset to have a handle to a C_Recordset for DB manipulation. The problem is that in order to make continiously SQL requests i find handy to use the C_Recordset::Open(). I have a difficulty to insert a VARIANT with the pDispatch of the ActiveConnection as a second argument for the Open function. First of all how do i get this VT_DISPATCH value . Any ideas or examples?

   Regards,
      Teo.

0
Comment
Question by:ttsenis
2 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 50 total points
Comment Utility
You might want to look at
www.codeproject.com/database/caaadoclass1.asp

The classes there are very usefull.  (I use a modified version for ADO onto MS Access).
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 57
Process filename extension 3 155
pre4 challenge 19 87
FizzBuzz challenge 9 71
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now