Developing Visual Basic Applications to Interact with an Access Database Training Session Brian R. Kovar Kansas State University 8 th AIS Educator Annual.

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

Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in 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.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
EGR 141 Computer Problem Solving in Engineering and Computer Science Interfacing with a Database in Visual Basic.NET 2005.
Attribute databases. GIS Definition Diagram Output Query Results.
Concepts of Database Management Sixth Edition
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Some Basic Database Terminology
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
1 Lesson 6 — Database Programming Microsoft Visual Basic.NET, Introduction to Programming.
Concepts of Database Management Seventh Edition
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Learning about Expert Systems through computer programming.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
CHAPTER EIGHT Accessing Data Processing Databases.
1 Working with MS SQL Server Textbook Chapter 14.
CHAPTER EIGHT Accessing Data Processing Databases.
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.
Concepts of Database Management Seventh Edition
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Database Management System (DBMS) an Introduction DeSiaMore 1.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
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 2013 ®® Tutorial 10 Automating Tasks with Macros.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
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.
HNDIT Rapid Application Development
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
10.1Retrieving a Database File – In the last chapter, we have created a database file and several tables for that database. – In order to view and modify.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 350.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Interacting with a Database Using Visual Basic.NET: An Alternative Approach to Illustrate Database Concepts Brian R. Kovar Kansas State University 7 th.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Using Visual Basic.NET Programming Tools in the AIS Course Training Session Brian R. Kovar Kansas State University 7 th AIS Educator Annual Meeting June.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Florida Technical College
VB 2010 Pertemuan 10.
Lecture 6 VB.Net SQL Server.
ICT Database Lesson 1 What is a Database?.
Databases.
Databases and Information Management
VB.NET Using Database.
System And Application Software
MANAGING DATA RESOURCES
Using Access to Implement a Relational Database
CIS16 Application Programming with Visual Basic
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Databases and Information Management
Chapter 10 ADO.
Creating an Expert System Using Visual Basic.NET Training Session
Chapter 10 Accessing Database Files
Databases Continued 10/18/05.
Understanding Core Database Concepts
Unit – V Data Controls.
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

Developing Visual Basic Applications to Interact with an Access Database Training Session Brian R. Kovar Kansas State University 8 th AIS Educator Annual Meeting June 23, 2006

Concepts Covered in this session Programming –How to link a VB.NET program to a database –Basic SQL –How to bind controls/objects to a dataset –How to create message boxes –IF….Then….Else Selection Statements –Variable Declaration –Object-Oriented Programming –How to create message boxes –Visual Basic programming environment The idea of “program-data independence”. Many other programming and information systems concepts will be covered as well

Programming helps build accounting competencies Programming helps develop and improve problem solving and critical thinking skills. –Increased ability to handle more complex accounting issues and problems (Beard and Smith 2002) AICPA core competency: ability to leverage technology (2004) The lack of programming skills may handicap accountants in working effectively as IS auditors (Calderon, Cheh, Chatham 2002) The Information Systems Audit and Control Association (ISACA) has developed curriculum models stressing the need and importance of computer programming skills.

Tutorials Developed for Classroom Use Creating and Coding an Expert System Using Visual Basic.NET –Published in the Winter 2005 issue of The Review of Business Information Systems. Received a Best Paper Award at the 2004 AIS Educator Conference. Interacting with a Database Using Visual Basic.NET –Presented at the 2005 AIS Educator Conference –Recently accepted for publication in the 2006 C3 project (A Compendium of Classroom Cases and Tools) sponsored by the Information Systems section of the American Accounting Association. Designed to give students an introductory look into how computer programs are created using a computer programming language (VB.NET), as well as give students some basic exposure to the concepts and skills needed to create computer programs. Step-by-step tutorials where students: –Create an expert system (Loan Evaluation ES) –Create programs capable of interacting with an Access database (simple data retrieval and display, as well as SQL queries involving one table and multiple tables)

Interacting with a Database Using Visual Basic.NET VB.NET uses ADO.NET ( ActiveX Data Objects.NET ) to read and write information to a database. –A copy of the records and fields that are needed (called the dataset) is stored in the computer’s memory. –The connection to the database is closed, while the dataset (in memory) is manipulated. –The application (VB.NET program) reconnects to the original database when changes to the dataset need to be saved. Data Adapter (acts as an intermediary between a dataset and the database) The Data Source (Database) DataSet (stored in computer’s memory) VB.NET Application (user interface and program code)

Making a VB.NET application interact with a database 1.Create a connection to a data source (a specific database file and its tables) 2.A Data Adapter must be created to facilitate information transfer back and forth between the data source and the computer program. 3.A Data Set (internal memory data holding area) must be created to hold the data as the application is working with it. Supports the idea of program/data independence Data Adapter (acts as an intermediary between a dataset and the database) The Data Source (Database) DataSet (stored in computer’s memory) VB.NET Application (user interface and program code)

SQL (Structured Query Language) Pronounced as both SQL and sequel A set of commands used to access and manipulate the data stored in a DBMS. Can be used to store, retrieve, update, delete & sort data. SELECT fields FROM table [WHERE condition] [ORDER BY field] SELECT specifies the fields that should be displayed. FROM specifies the table or tables the selected fields are taken from. WHERE is used to limit the records to only those meeting specified criteria. ORDER BY is used to sort the displayed records.

Database Methods (Actions) Dataset = an object representing the data you want to access. –Clear removes all rows in all tables in a dataset. –Fill refreshes/adds data from the source (data source) –Count = the number of items in something (the dataset) –Position = current location in something (the dataset) Binding context is an “object” used to keep track of all datasets. Each dataset can be identified and manipulated while the program is running using its binding context and its parameters (name and names of tables being accessed)

SelectCommand.Parameters(“State”).Value=State is used to modify the filter (subset of records from the original set) established by the WHERE SQL command. –WHERE (State = ?)

Using my Interacting with a Database Using VB.NET tutorial in the classroom Can be used as part of an in-class unit, or it can be used as a stand-alone, self-paced unit. Has been used at both the undergraduate and graduate levels. –Students typically report that the tutorial takes 5-6 hours to complete Must be completed in a computer lab or on a computer that already has Visual Studio/Visual Basic.NET installed. –Software can be obtained for a yearly fee from the Microsoft Software Developer Network Academic Alliance (your college or department may already be a member)

Concepts Covered in this session Programming –How to link a VB.NET program to a database –Basic SQL –How to bind controls/objects to a dataset –How to create message boxes –IF….Then….Else Selection Statements –Variable Declaration –Object-Oriented Programming –How to create message boxes –Visual Basic programming environment The idea of “program-data independence”. Many other programming and information systems concepts were covered as well