473,772 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with converting DAO to ADO

I'm looking at converting DAO to ADO in my app. All of my DAO connections
are of the following structure:

Dim wsName As DAO.Workspace
Dim dbName As DAO.Database
Dim rsName As DAO.Recordset

Set wsName = DBEngine.Worksp aces(0)
Set dbName = wsName.OpenData base(CurrentPro ject.FullName)
Set rsName = dbName.OpenReco rdset("SQL Statement")

I'm a real newbie with ADO and don't feel at all comfortable with it. Now to
convert to ADO, something like:

Dim cnnName As New ADODB.Connectio n
Dim rsName As New ADODB.Recordset

and here's where I start to get confused:

Set cnnName = Application.Cur rentProject.Con nection????
rsName.Open "SQL Statement" ????

Since I have several hundred of these DAO constructs, I'm trying to figure
out if there is a way I could write code to accomplish the conversion.

Thanks for any help.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200602/1
Feb 17 '06
32 12517
Larry Linson wrote:
Jim,

In the development environment which _matters_ to Microsoft, that is DotNet,
they already _HAVE_ given up on classic ADO. Its successor is ADO.NET which
is based on a different object model.

Unless I am wrong, the PDC (Professional Developers Conference) almost
totally emphasizes DotNet and the ADO to which they refer so frequently is
ADO.NET -- not the "classic ADO" to which Lyle's quote refers.

Larry Linson
Microsoft Access MVP


Thanks for the information Larry. Having used classic ADO but not
ADO.NET I was unaware that the object model had changed. Do you know
of a reference that explains the differences between classic ADO and
ADO.NET with emphasis on the "why?" I'll keep that in mind as I
continue to download and view the presentations.

James A. Fortune
CD********@Fort uneJames.com

Feb 19 '06 #31
No, I haven't kept any references / links, Jim. I have not ventured into
actually _doing_ DotNet, just kept up with the environment as it develops.
Visual Studio 2005 is still strongly enterprise-oriented, but with some
improvements for (or concessions to?) the "little guys". I have more hopes,
from what I've seen published about the goals for the next version,
codenamed "Orcas".

The only times I use ADO are when I am working on someone else's database.
But, I have seen enough of both to know that there's some apparently
similarity, and some real differences.

Larry Linson
Microsoft Access MVP
<CD********@For tuneJames.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Larry Linson wrote:
Jim,

In the development environment which _matters_ to Microsoft, that is
DotNet,
they already _HAVE_ given up on classic ADO. Its successor is ADO.NET
which
is based on a different object model.

Unless I am wrong, the PDC (Professional Developers Conference) almost
totally emphasizes DotNet and the ADO to which they refer so frequently
is
ADO.NET -- not the "classic ADO" to which Lyle's quote refers.

Larry Linson
Microsoft Access MVP


Thanks for the information Larry. Having used classic ADO but not
ADO.NET I was unaware that the object model had changed. Do you know
of a reference that explains the differences between classic ADO and
ADO.NET with emphasis on the "why?" I'll keep that in mind as I
continue to download and view the presentations.

James A. Fortune
CD********@Fort uneJames.com

Feb 19 '06 #32
CD********@Fort uneJames.com wrote:
Do you know
of a reference that explains the differences between classic ADO and
ADO.NET with emphasis on the "why?" I'll keep that in mind as I
continue to download and view the presentations.


Lyle's reference to MSDN in another thread combined with the hints in
PDC 05 will provide me with enough information to get the "why?" Being
based on XML is a motivation I understand already. I'll try to compare
ADO.NET's DataSet with C#'s IEnumerable to see if the data structure is
moving toward a unified one. It would be interesting to use language
integrated SQL along with WinFS to get the list of files in a directory
directly. It helps that MS doesn't do much randomly. I've got a lot
of thinking to do once I finish wading through all the PDC 05
information.

James A. Fortune
CD********@Fort uneJames.com

Most relational databases are really one-dimensional in a certain
sense. Most schemas use foreign keys to impose a set/subset relation
on data. That relation enforces a hierarchy or tree and constitutes
only one abstract facet of knowledge.

Feb 19 '06 #33

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4813
by: Rex_chaos | last post by:
Hi all, I have a question about datatype converting. Consider the following types std::complex<double> and struct MyComplex { double re, im; }
4
1767
by: jipster | last post by:
hi, i need help converting this java program to C++...are there any programs or nething that could be used to do this faster?? class hw2 { static public void main (String args) { hw2.test();} Board board = new Board(8); if ( board.fillInRemainingLevels() ) board.print(); else System.out.println("Couldn't find solution");
3
3363
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With numarray, help gives unhelpful responses:
3
1456
by: alyssa | last post by:
Hi guys, May i know how to declare a string of binary data and pass it to the method? For example, int a={10010001120420052314} is it correct? and if i have receive the binary data, may i know how to separate them and store each of them inside a variable such as int cust_id?is it possible? For example, the first four bits is the customer id, the second four bits is the call id and third 8 bits is the date and the remaining is the time.. ...
4
3097
by: Clark Stevens | last post by:
I have a program that I'm converting from VB6 to VB.NET. It reads in a text file containing barcode numbers and their corresponding descriptions. Then the user enters the barcode number and the program finds the matching barcode description. In VB6 I used an UDT to store the barcode number along with the description. Then I declared an array of the barcode UDT. I'm thinking of converting the UDT to a structure in VB.NET and doing...
13
3973
by: Paraic Gallagher | last post by:
Hi, This is my first post to the list, I hope somebody can help me with this problem. Apologies if it has been posted before but I have been internet searching to no avail. What I am trying to do is provide a simple method for a user to change a config file, for a test suite. The config file consists of a number of keys, eg. build number, target device, etc.
16
5448
by: manmit.walia | last post by:
Hello All, I have tried multiple online tools to convert an VB6 (bas) file to VB.NET file and no luck. I was hoping that someone could help me covert this. I am new to the .NET world and still learning all help would be greatly apperciated. Attribute VB_Name = "Module1" Option Explicit
2
1761
anukagni
by: anukagni | last post by:
Hi, iam having an database for that i have created an user manual includes help topics ..I prepared in the word format and i want to covert this to html help . Iam having Ms Html workshop but i found to hard to create any body sugess me to create an html help by converting the word matters too.... needed solution ... thanks in advance.. thanks, anukagni
10
5729
by: minterman | last post by:
1. the program needs to convert btu to jules 2. Convert calories to joules 3. Convert joules to joules 4 exit the program. if the user type anything other than 1-4 the program should print a error message. here is my code. import java.util.Scanner;
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.