473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What happens with this code??

Actually this is a part of the code that keeps me wondering why?

Expand|Select|Wrap|Line Numbers
  1. Dim rsExp As New ADODB.Recordset
  2.        Dim rsDB As New ADODB.Connection
  3.  
  4.        Set rsExp = New ADODB.Recordset
  5.        Set rsDB = New ADODB.Connection
with this i remove ADODB. and wrote it just as a Recordset in all the 4statements above, it worked well.

So I would like to know what is the difference between doing it eitherways?

Please do explain actually what the ADODB recordset is all about?

thanx in advance
Apr 28 '07 #1
1 1182
Dököll
2,364 Expert 2GB
Actually this is a part of the code that keeps me wondering why?

Expand|Select|Wrap|Line Numbers
  1. Dim rsExp As New ADODB.Recordset
  2.        Dim rsDB As New ADODB.Connection
  3.  
  4.        Set rsExp = New ADODB.Recordset
  5.        Set rsDB = New ADODB.Connection
with this i remove ADODB. and wrote it just as a Recordset in all the 4statements above, it worked well.

So I would like to know what is the difference between doing it eitherways?

Please do explain actually what the ADODB recordset is all about?

thanx in advance
Greetings!

I got you this link: http://en.allexperts.com/q/Visual-Ba...3-Beginner.htm

Hope it helps!
Apr 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
6
by: Alfonso Morra | last post by:
I have written the following code, to test the concept of storing objects in a vector. I encounter two run time errors: 1). myClass gets destructed when pushed onto the vector 2). Prog throws a...
5
by: pankaj tiwary | last post by:
Hello experts, please consider the code fragment:- #include<stdio.h> #define TOTAL_ELEMENTS (sizeof(array)/sizeof(array)) int array = {23,34,12,17,204,99,16}; int main() {
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
7
by: hazz | last post by:
What happens if I set the timer interval for a period that is less than the time it will take to process the loop below? Right now my application is returning just a few items in an arraylist to...
2
by: swesoc | last post by:
Hello Friend, I know this question is been asked many times, if a have base pointer pointing to derived object & if i delete that pointer , if the base class destructor is not virtual. then...
18
by: __PPS__ | last post by:
Hello, I'm a university student and I'm preparing for my final today. I'm reading course notes, I found completely strange piece of code. It makes me laugh, I think the teacher needs to prepare...
9
by: ziman137 | last post by:
Hi all, The results from following codes got me a bit confused. #include <stdio.h> #include <iostream> using namespace std; struct A {
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Languageâ€, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
6
by: Tony | last post by:
What happens before main()? Perhaps someone can explain it succintly and perhaps someone has a link where it is described? crt0.lib or something like that comes to mind (surely I have the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.