 Open the Paradise.exe file  Application displays records in the Books database  Allows the store manager to enter an author’s name (or part of a name)

Slides:



Advertisements
Similar presentations
Microsoft Access.
Advertisements

Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Access Lesson 2 Creating a Database
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Using ADO.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Access Tutorial 1 Creating a Database
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
Business Computer Information Systems Microsoft Office XP Access Review Lessons 1 through 5.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
Some Basic Database Terminology
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Databases and LINQ Visual Basic 2010 How to Program 1.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Chapter 1 Databases and Database Objects: An Introduction
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Chapter 15: Using LINQ to Access Data in C# Programs.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Thirteen Working with Access Databases and LINQ.
Lesson 17 Getting Started with Access Essentials
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Key Applications Module Lesson 21 — Access Essentials
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
® Microsoft Office 2013 Access Creating a Database.
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.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Databases with LINQ. LINQ to SQL LINQ to SQL uses LINQ syntax to query databases. LINQ to SQL classes are automatically generated by the IDE’s LINQ to.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Creating Select Queries Chapter 6 Microsoft Office Access 2003.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 25 I’m Suffering from Information Overload.
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
Chapter 24 I’m Suffering from Information Overload (Access Databases) Clearly Visual Basic: Programming with Visual Basic nd Edition.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Chapter 9 Working with Databases. Copyright © 2011 Pearson Addison-Wesley Introduction In this chapter you will learn: – Basic database concepts – How.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Visual Basic 2010 How to Program
VB 2010 Pertemuan 10.
Access Creating a Database
Access Creating a Database
Access Lesson 1 Understanding Access Fundamentals
CIS16 Application Programming with Visual Basic
Database Applications
Lesson 23 Getting Started with Access Essentials
Presentation transcript:

 Open the Paradise.exe file  Application displays records in the Books database  Allows the store manager to enter an author’s name (or part of a name)  Displays only books written by the author  Displays the total value of books in the store 2

3 Figure 13-1 Books written by Carol Smith

After studying Lesson A, you should be able to:  Define basic database terminology  Connect an application to a Microsoft Access database  Bind table and field objects to controls  Explain the purpose of the DataSet, BindingSource, TableAdapter, TableAdapterManager, and BindingNavigator objects  Customize a DataGridView control  Handle errors using the Try…Catch statement  Position the record pointer in a dataset 4

 Computer database  Electronic file containing an organized collection of related information  Relational database  Database that stores information in tables composed of rows and columns  Each column in a table represents a field  Each row in a table represents a record  Field  Single piece of information about a person, place, or thing 5

 Record  Group of related fields that contain all the necessary data about a specific person, place, or thing  Table: Group of related records  Each record in a table pertains to the same topic and contains the same type of information  Primary key: Field uniquely identifying a record  A two-table database has parent and child tables  Foreign key  Field that links a child record to a parent record 6

7 Figure 13-3 Example of a one-table relational database

8 Figure 13-4 Example of a two-table relational database

 Advantages of a relational database  Data can be retrieved quickly and easily  Data can be displayed in any order  You can control how much data to view 9

 Must bind one or more objects in the dataset to controls in the interface to view dataset contents  Binding  Connecting an object to a control  Bound controls  Connected controls  Types of controls used to bind dataset objects  Computer-created control  Existing control on the form 10

11 Figure Ways to bind an object in a dataset

12 Figure Result of dragging the table object to the form

 In addition to a control, the computer adds:  BindingNavigator control: To move from one record to the next in the dataset  TableAdapter object: Connects the database to the DataSet object; responsible for retrieving data and storing it in the DataSet  TableAdapterManager object: Handles saving data to multiple tables in the DataSet  BindingSource object: Provides the connection between the DataSet and the bound controls 13

14 Figure Illustration of the relationships among the database, the objects in the component tray, and the bound controls

 DataGridView control  Displays data in a row and column format  Cell: Intersection of a row and column  DataGridView’s task list allows you to add, reorder, and remove columns and set properties of bound columns  AutoSizeColumnsMode: Has seven settings that control how the column widths are sized  Fill setting: Automatically adjusts the column widths so that the display area of the control is filled 15

16 Figure DataGridView control’s task list

17 Figure Purpose of each task in the DataGridView’s task list

18 Figure Edit Columns dialog box

19 Figure Completed CellStyle Builder dialog box

20 Figure DataGridView control after setting some of its properties

 Open the Morgan Industries Solution (Morgan Industries Solution.sln) file contained in the VB2010\Chap13\Morgan Industries Solution-Labels folder 21

 ทำการเชื่อมต่อฐานข้อมูลด้วย Data Source Configuration Wizard 22

23

24

 After studying Lesson B, you should be able to:  Query a dataset using LINQ  Customize a BindingNavigator control  Use the LINQ aggregate operators 25

 You use a query to specify both the records to select in a dataset and the order in which to arrange the records.  You can create a query in Visual Basic using a language feature called Language Integrated Query ( LINQ) 26

27

28

29

30

31

32

33

After studying Lesson C, you should be able to:  Prevent the user from adding and deleting records  Remove buttons from a BindingNavigator control  Add a label, a text box, and a button to a BindingNavigator control 34

35