Solved

About C_Recordset::Open

Posted on 2003-11-26
2
209 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
ID: 9825487
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 63
Excel Use VBA to get user's Mac Address for their computer 5 165
maven archtype selection in eclipse 1 57
Sed question 2 85
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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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