Notes on ADO from other projects Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

ADO DB in Access VBA © Walter Milner 2005 Slide: 1 ADO VBA Programming in Access.
How to Create a Local Collection
Importing and linking through Access Please use speaker notes for additional information!
Internal connection and introduction to shape language Please use speaker notes for additional information.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
ActiveX Data Object ISYS 562. ADO An ActiveX control ActiveX is build upon COM, a contract that defines a standard interface by which objects communicate.
Using Objects and Properties
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
Using ADO Programmatically The Connection Object and the Command Object.
Adding, Updating, and Deleting Records from a Recordset.
CIS 338: Using DAO (Data Access Objects) Dr. Ralph D. Westfall February, 2003.
EGR 141 Computer Problem Solving in Engineering and Computer Science Interfacing with a Database in Visual Basic.NET 2005.
CIS 451: ASP Recordsets Dr. Ralph D. Westfall May, 2002.
1 Working with MS SQL Server II. 2 The sqlcmd Utility Command line utility for MS SQL Server databases. Previous version called osql Available on classroom.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
Interacting with Databases Chapter 10. VB and Databases u It is often useful to have a VB program access data stored in a file other than a text file.
InvEasy (Project1) Please use speaker notes for additional information!
Break Processing Please use speaker notes for additional information!
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 11 Accessing Database.
Territory Management. Territory management usage Best Practice Content 1.Request your data 2.Rework your territory geographically 3.Balance your foldercodes.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
An introduction for Data Reporters. College Credit Plus Replaces PSEO Replaces dual enrollment.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
Applicants Please use speaker notes for additional information!
Relationships and Advanced Query Concepts Using Multiple Tables Please use speaker notes for additional information!
Array - adding to array at run time Please see speaker notes for additional information!
Lecture Note 10: Simple Database Techniques. Introduction –Database System –Access, SQL Server and others. –Microsoft Access - Interacting with this databases.
Visual Basic ADO Programming 56:150 Information System Design.
XML and DTD Please you speaker notes for additional information!
First Slide – Put presentation title here Put presentation subtitle here.
MDI with Menu Please use speaker notes for additional information!
Random Files Please see speaker notes for additional information!
Advanced Vision Application in 3 Tiers. Vb app.e xe web page? Bus Object 1 Bus Object 2 Bus Object 3 Business layer ActiveX DLL (COM DLL) Presentation.
ActiveX Data Objects (ADO) is Microsoft’s latest database object model. The goal of ADO is to allow VB developers to use a standard set of objects to refer.
Delivery and other DO Examples Please use speaker notes for additional information!
Two Forms Please use speaker notes for additional information!
ASP.NET Binding and an Introduction to Database Queries Please use speaker notes for additional information!
Bubble sort Please use speaker notes for additional information!
Formatting Datasheet in Access and Basic Tools Please use speaker notes for additional information!
Visual Basic I/O Programs (ProjRead1, ProjRead2, ProjWrite1, ProjPay) Please use speaker notes for additional information!
Maximum Profit Please use speaker notes for additional information!
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
The Windows Forms DataGrid A Complex-Bound.NET GUI Control Mike FITZSIMON SYSTEMSARCHITECT F ITZSIMON IT C ONSULTING PTY LTD.
Using a Database Access97 Please use speaker notes for additional information!
ASP-13-1 Recordsets Colorado Technical University IT420 Tim Peterson.
PHP with MYSQL Please use speaker notes for additional information!
1 ADO Activex Data Objects. 2 ADO ADO allows users to access data easily from many existing databases (such as Access or Paradox) From ODBC compliant.
Mark Dixon 1 Soft051 Examination Sample Questions.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
Unbound data fields, find, filter etc. using Data Environment Please use speaker notes for additional information!
ADO and DataList, DataCombo and DataGrid Controls Please use speaker notes for additional information!
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Visual Basic - Break Processing
Processing multiple files
Find, filter etc with connection to Access code internally
Data Environment and Grouped Report
IS444: Modern tools for applications development
IS444: Modern tools for applications development
Please see speaker notes for additional information!
Please use speaker notes for additional information!
Department Array in Visual Basic
Report using ADO connection
Environment/Report Tutorial
Excel Import data from Access to Excel (ADO) using VBA
Please see speaker notes for additional information!
Put the title here Here is the sub-title.
Put the title here Here is the sub-title.
Presentation transcript:

Notes on ADO from other projects Please use speaker notes for additional information!

Update

Private Sub cmdAdd_Click() ADODonor.Recordset.AddNew End Sub Private Sub cmdDelete_Click() ADODonor.Recordset.Delete ADODonor.Recordset.MoveFirst End Sub Private Sub cmdMoveFirst_Click() ADODonor.Recordset.MoveFirst End Sub Private Sub cmdMoveLast_Click() ADODonor.Recordset.MoveLast End Sub Private Sub cmdMoveNext_Click() ADODonor.Recordset.MoveNext End Sub Private Sub cmdMovePrevious_Click() ADODonor.Recordset.MovePrevious End Sub Private Sub cmdUpdate_Click() ADODonor.Recordset.Update End Sub Code

Private Sub Form_Load() Dim strConnectStr As String databasepath = App.Path If Right(databasepath, 1) <> "\" Then databasepath = databasepath & "\" End If databasepath = databasepath & "donor.mdb" strConnectStr = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" strConnectStr = strConnectStr & databasepath ADODonor.ConnectionString = strConnectStr 'ADODonor.CommandType = adCmdText 'ADODonor.RecordSource = "SELECT * from Donor2000 ORDER BY DIdno" ADODonor.CommandType = adCmdTable ADODonor.RecordSource = "Donor2000" ADODonor.Refresh ADODonor.Recordset.Sort = "DIdno" End Sub Code Another approach. Making this form portable.

PrDonorinGrid.vbp

Connection string is done in Form_Load to make the program portable. The caption code puts a caption over the specified columns. The visible code eliminates two columns. In this program we do not see street address or zip. Note also the width code which sets the width of two columns.

PrDonorinGrid.vbp The column information specified in the code on the previous slide is implemented.

PrADOACDstuy.vbp The beginning steps to add a new record.

PrADOACDstuy.vbp In form load, the connection string and record source are established. The recordset is also sorted by idno (the key field). Here I add a new record with AddNew, populate it with data and then Update the field that I added.

PrSQL4ADOy.vbp

PrSQL5ADOy.vbp

PrSQL6ADOy.vbp

Bookmark or hold the current location. When no match is found the holdBookmark is used.