?
Solved

RDO To ADO

Posted on 1999-11-30
1
Medium Priority
?
215 Views
Last Modified: 2013-11-23
To,
experts
Convert this code into ADO.What changes should i have to made ?
And i would like to use ADO 2.1, then references should i have to check
into the VB's project "references".

    Dim cn As New rdoConnection
    Dim qd As New rdoQuery
    Dim objresultset As rdoResultset


    cn.CursorDriver = rdUseOdbc
    cn.Connect = "uid=production;pwd=production;server=ngsales;" _
       & "driver={SQL Server};database=productiondb;dsn=’’;"
    cn.EstablishConnection

    strsql = "select NetgainID,Name,Dedup,MailMerge from NGSBizObjects"
    Set objresultset = cn.OpenResultset(strsql, rdOpenKeyset)
    MsgBox objresultset.rdoColumns(0).Value

I am eagerly waiting for your reply.

Thanks,
buddy
0
Comment
Question by:buddyp
1 Comment
 
LVL 3

Accepted Solution

by:
shyamkumarreddy earned 20 total points
ID: 2311145

Hi buddyp,


I will be possible giving ur the result




 Dim cn As New Connection
 Dim qd As New recordset
cn.Cursor = aduseclientcursor
cn.open "uid=production;pwd=production;server=ngsales;" _
                                           & "driver={SQL Server};database=productiondb;dsn=’’;"

                                        strsql = "select NetgainID,Name,Dedup,MailMerge from
                                    NGSBizObjects"

                                         qd.Open strsql ,cn,adopendynamic)
                                        MsgBox qd.adColumns(0).Value
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

601 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