Database Management School of Business Eastern Illinois University © Abdou Illia, Fall 2002 (Week 16, Monday 12/09/2002)

Slides:



Advertisements
Similar presentations
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Advertisements

Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
List box & Combo box controls School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 14, Monday 4/21/2003)
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Visual Basic Database Access BICS546. Microsoft Universal Data Access OLE DB: The OLE database protocol –Allows a program to access information in any.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Using the Data Access Controls: DAO & ADO Presented by Victor Matos.
Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance.
Introduction to ADO.Net, VB.Net Database Tools and Data Binding ISYS 512.
Some Introductory Programming 1. Structured Query Language - used for queries. - a standard database product. 2. Visual Basic for Applications - use of.
WORKING WITH FILES, MENUS AND DATABASES IN VISUAL BASIC BY V. V. SUBRAHMANYAM.
Chapter 8 Relational Databases ActiveX Database Controls 8 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Some Basic Database Terminology
Database Management Review for Final (Part 1) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 15, Wednesday 4/30/2003)
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Handling of data from multiple databases. Visual Basic Database Visual Basic application acts as a front-end to the database Visual Basic application.
Copyright © 2001 by Wiley. All rights reserved. Chapter 10: Advanced Database Operations Revising Vintage Videos Setting RecordSource at run time DBGrid.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
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.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Array Processing: Exercises School of Business Eastern Illinois University © Abdou Illia, Spring 2002 (Week 10, Friday 3/28/2003)
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 11 Accessing Database.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
Microsoft Access 2013 Simplify Data Entry with Forms Chapter 3.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
Sub procedures School of Business Eastern Illinois University © Abdou Illia, Spring 2002 (Week 6, Friday 2/21/03)
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Microsoft Access Lesson 2 Lexington Technology Center February 13, 2003 Bob Herring On the Web at
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Sequential files School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 12, Monday 4/07/2003)
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Tutorial 101 Variable Arrays A group of variables that have the same name and data type and are related in some way Can have as many as 60 dimensions.
Review for Final (Part 2) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 15, Friday 5/2/2003)
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
CONTROL STATEMENTS. A conditional expression uses a comparison operator which results in true or false value. If the comparision is valid it results in.
 May be times when we need calculations in a report. ◦ Total of how much a salesman has sold ◦ Report showing total inservice training hours an employee.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project -> Component.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Creating a database - I clicked on blank database and am saving it as books10.mdb. For more information see the practice example under week #1. I am going.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Data Control In this presentation… –databases supported –inserting a data control –data control properties –using the data control.
Select Case Blocks School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 8, Monday 3/03/2003)
Visual Basic Database Access
Microsoft Access 2016 Simplify Data Entry with Forms
5. Using databases in VB.
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Report using ADO connection
Working With Databases
Chapter 10 Accessing Database Files
Grauer and Barber Series Microsoft Access Chapter Two
Presentation transcript:

Database Management School of Business Eastern Illinois University © Abdou Illia, Fall 2002 (Week 16, Monday 12/09/2002)

2 Exam 3 n Answers to Exam questions will be presented

3 Quiz 2 n Answers to Quiz questions will be presented

4 Friday’s class Exercise 1 n Suppose that a form contains (1) a list box named lstNumbers containing positive numbers, (2) a command button named cmdDisplay, (3) and a picture box named picOutput. Write a click event procedure associated to the command button. The procedure should calculate the total and the average of the numbers in the list, and display the average in the picture box. Private Sub cmdDisplay_Click () Total = 0 For i = 0 To lstNumbers.ListCount -1 Total = Total + val(lstNumbers.List(i)) Next i AVG = Total / lstNumbers.ListCount picOutput.Print “The average is :”; AVG End Sub

5 Friday’s class Exercise 2 n Suppose that the list box lstEmployee is as shown. Write the statements that store its items in the file Employee.txt. Open lstEmployee.txt For Output As #1 For i = 0 To lstEmployee.ListCount -1 Write #1, lstEmployee.List(i) Next i Close #1

6 What is a Database ? n Database: Collection of information stored in tables n Example: BIBLIO.MDB Au_IDAuthorYear Born Authors Table (6246 Records, 3 Fields) PubID Name Company Fax Comments Publishers Table (727 Records, 10 Fields) Au_ID ISBN Title Author Table (16056 Records, 2 Fields)

7 Table, Field, Record Authors Table Au_ID Author Year_Born A001 Jacobs, Russell 1945 A002 Metzger, Philip W. 1961A003 Sydow, Dan Parks 1948: : :: : : Field Record

8 VB and Database Management n Two tools in VB 6.0 to manage databases – Activex Data Object (ADO) – Data Access Object (DAO) n ADO control should be added to the toolbox (Project/Components and check Microsoft ADO Data Control) n ADO and DAO controls can be used to: – Connect to a database. – Open a specified database table. – Create a virtual table based on a database query. – Pass database fields to other Visual Basic tools, for display or editing. Such tools are bound tools (controls), or data aware. – Add new records or update a database.

9 DAO control n Common properties: – DatabaseName Used to set the name and location of database – RecordSource Used to set specific table in the database Examples: Name: datBiblio DatabaseSource: C:\Program Files\Microsoft Visual Studio\VB98\BIBLIO.MDB RecordSource: Titles

10 Bounding Text boxes to DAO control n Text boxes are said data-aware because they can be bound to DAO controls and access their data n Two Text boxes properties are used to bound them to DAO controls: – DataSourceUsed to set the DAO control from which data is read – DataField Used to set the field of the table from which data is read Examples: Name: txtTitle DataSource: datBiblio DataField: Title Name: TxtYear DataSource: datBiblio DataField: Year_Published

11 Exercise n Create the following user-interface with one DAO control and two text boxes so that data in the table Titles from the database BIBLIO.MDB (found in the main VB directory). Name: txtTitle DataSource: datBiblio DataField: Title Name: TxtYear DataSource: datBiblio DataField: Year_Published Name: datBiblio DatabaseSource: C:\Program Files\Microsoft Visual Studio\VB98\BIBLIO.MDB RecordSource: Titles