473,403 Members | 2,354 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,403 software developers and data experts.

Please explain this ADO-related code for me

please give me the explanation of these code
i am a trainee programmer.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command2_Click()
  2. Dim ADOcommand As New ADODB.Command
  3. Dim ADOconnection As New ADODB.Connection
  4. Dim RSSales As New ADODB.Recordset
  5.  
  6. Set ADOconnection = CreateObject("ADODB.Connection")
  7. ADOconnection.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\NWIND.MDB; Persist Security Info= False"
  8. Set ADOcommand.ActiveConnection = ADOconnection
  9. ADOcommand.Prepared = False
  10. ADOcommand.CommandText = "Invoices"
  11. ADOcommand.CommandType = adCmdStoredProc
  12. Set RSSales = ADOcommand.Execute()
Feb 12 '07 #1
1 946
Esmael
58
Hi..

It olny execute what is in the Store Procedure...
Feb 15 '07 #2

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

Similar topics

9
by: DD | last post by:
Hello, Could anyone please help me?? Is there somebody who could explain me how to make a connection to a access database with a python cgi script. I would like to use common sql commands in my...
5
by: Martin | last post by:
Dear Group Sorry for posting this here. I'm desperate for a solution to this problem and thought some of you might have come across it with .NET and SQL Server. Let's assume I've the following...
2
by: Tom Rahav | last post by:
Hello All! I use visual basic .net 2003 and develop database application based on MS ACCESS. Since I started develop my application till now I use the same way to handle the data flow: 1. I...
2
by: Amanda | last post by:
From a guy in Microsoft newsgroups: | In *comp.databases.ibm-db2* there are always IBM guys | from the Toronto labs on line.Post with the | -for the love of god please help- | line...
3
by: Mark Broadbent | last post by:
could somebody please recommend a good book to prepare for exam Exam 70-320*: Developing XML Web Services and Server Components with Microsoft Visual C# and the Microsoft .NET Framework . One that...
8
by: Duncan Winn | last post by:
I am new to VC++7. I am using a method GetPrivateProfileString that requires an LPTSTR. I have defined this as a: char * data_name; I am then trying to convert this to an LPOLESTR and I...
2
by: turkey65 | last post by:
Could someone please explain and help me fix the following error? "ADO error: MSDTC on server 'myServer' is unavailable" It came up when I tried to run a query. Thank you!!
0
by: agcabutotan | last post by:
Hi to everyone. I am new in this thread, please help me. I'm having difficulty with CrystalReport.Net. I have a completed project written and compiled in VB.Net (and I used CrystalReport.Net in...
2
by: only2gayathri | last post by:
Hi all, I have a page(vb.net) which directs to a excel sheet.This excel sheet retains all the values(mainly numbers) from the page and displays it.The problem is that sometimes the number's...
2
by: =?Utf-8?B?RW1tYSBIb3Bl?= | last post by:
Hi All, I have VB & SQL 2005 Express but i'm afraid i am a newbie, my background is in MS Access so please if you can give me any advice, please take my inexperience into consideration. I...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.