AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

MS Access 2003 Tutorial By: Juan GUANTENG!!! Y7. Step 1 Launch the Microsoft Access 2003 program. This can be done by clicking an icon on the desktop.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Microsoft Access Course 1. Introduction to the user interface.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Using Visual Basic 6.0 to Create Web-Based Database Applications
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.
Access Tutorial 4 Creating Forms and Reports
Access Tutorial 4 Creating Forms and Reports
Chapter 8 Relational Databases ActiveX Database Controls 8 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Some Basic Database Terminology
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
ODBC REPORTS How to Use Access to work with MS SQL Server Database.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
ADO Connect Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
ODBC : What is it and how does it work with MDS ?.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract 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.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
ODBC  Topics  MDS ODBC Account  Now have ability to create and manipulate your own reports, with your data, using various reporting tools.  Access.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
Faculty of Electronic Engineering 1 Database Access API’s Aleksandar Stanimirović Leonid Stoimenov Aleksandar Milosavljević.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
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.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Introduction to ADO.Net and VS Database Tools and Data Binding ISYS 350.
Presentation On How To Create Connection To A Database.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
Database Connectivity What is ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Chapter 5 Building Your Product Catalog database Objectives Create Database. Create Table. Connect to Database. Use ASP Script to add new products. Use.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Lecture 4 Manipulating Form Data using methods of Recordset and RecordsetClone in VBA Restrict data with filter 1 Rapid Application Development.
How To Start a SQL server Connecting to SQL Server.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Visual Basic Database Access
W04 Connecting 3rd Party Application to ODBC
JDBC Database Management Database connectivity
Created by Kamila zhakupova
5. Using databases in VB.
Chapter 7 Advanced Form Techniques
Microsoft Office Access 2003
Microsoft Office Access 2003
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Chapter 10 ADO.
Working With Databases
Access Tutorial 4 Creating Forms and Reports
Tutorial 4 Creating Forms and Reports
Unit – V Data Controls.
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

AVCE ICT – Unit 7 - Programming Session 16 – Database and VB

In the real world This is what VB is most used for The user is hidden from the complexities of the database There is a user friendly front end You have the full power of a programming language to manipulate data The user doesn’t need to have MS Access installed on their machine

Databound controls These are the ones that can be bound to a database DAO (the data aware objects databound control) This is used to bind to Access 97 databases ADODC (ActiveX Data Objects Data Control) This is used to bind to Access 2000 format databases

Data aware controls These can be associated with a databound control and can be used to display data items Text boxes Labels List and combo boxes Data grid MS Flexgrid plus others

Binding For the DAO data control, set the Database Name property and then the Record Source property to the table name For the ADO, use an ODBC Data Source Name (DSN) which is very simple to set up

Binding - DAO Click on the option list to select the database The Jet Engine is the standard MS engine for searching the database

Binding - DAO This is the table name but it could be a Query that you have created in Access

Binding - ADO The Connection String property specifies the database

Setting up the DSN Select 32bit ODBC data sources from within control panel

Setting up the DSN Select Add and then select the Microsoft Access Driver followed by Finish

Setting up the DSN Select the Database and then choose a suitable Data Source Name, then click OK

Design time coding Once you have created the DSN and used that to set the Connection String property of the ADODC, you can use tools such as the Data Form Wizard (on the Add Form choices) to create a form containing all of the controls needed to access data

Queries A query can be used as a DSN in its own right You can also create and run queries within VB at run time Databases are manipulated using the very high level language called Structured Query Language or SQL (sometimes pronounced Sequel)

Assignment task A database isn’t necessary for the project but You could create a database to hold user ID, number pairs The database could be queried to authenticate the user This would be a very impressive addition!

Return to Main Menu