Please see speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -
Advertisements

The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Introduction to Structured Query Language SQL. SQL Select Command SELECT * FROM tableName WHERE criteria;
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Chapter 2 Querying a Database
Microsoft Access 2000 Creating Tables and Relationships.
Cursors in PL/SQL Includes cursor example and continuation of first cursor example Please use speaker notes for additional information!
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
XML, DTD, ENTITY Please see speaker notes for additional information!
Relationships and Advanced Query Concepts Using Multiple Tables Please use speaker notes for additional information!
XML and DTD Please you speaker notes for additional information!
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.
SQL and Conditions Speaker notes will provide additional information!
1 Database Systems Introduction to Microsoft Access Part 2.
There are seven main components of a database in Access 2000: Tables. Use tables to store database information. Forms Use forms to enter or edit the information.
Introduction to Access 2010 CIS120first.accdb is the database I am creating.
I want to do SQL, I start as if I am doing a regular query.
When I want to work with SQL, I start off as if I am doing a regular query.
ASP.NET Binding and an Introduction to Database Queries Please use speaker notes for additional information!
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Visual Basic I/O Programs (ProjRead1, ProjRead2, ProjWrite1, ProjPay) Please use speaker notes for additional information!
Query Lab CSC 240 Blum1. Log on to PMA (PHPMyAdmin) and click on the Northwind database CSC 240 Blum2.
CS130 Visual Basic Project 4 Lecture Fall New topics in project 4 Database, file (table), records, fields. Application that contains menus, submenus,
Using a Database Access97 Please use speaker notes for additional information!
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.
DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project -> Component.
More about maintaining a table Use speaker notes for additional information!
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
Microsoft Access By Ritesh Sharma. Introduction Microsoft Access is a desktop database program that enables you to enter, store, analyze,and present data.For.
Catcher ugB BUG CATCHER GAME: Find the error in each slide then hit Enter 1.When you see the bug above click the mouse or hit [Enter]. 2.If you need to.
Access Test Questions Test Date: 05/05/16. Chapter 1 (Lynda.com) Question 1 An access database uses five main components (database objects). Which is.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Database Access with SQL
Chapter 5 Introduction to SQL.
Data Environment and Grouped Report
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
This shows the user interface and the SQL Select for a situation with two criteria in an AND relationship.
Chapter 4 MS ACCESS DATABASE.
Access Database for CIS17
MySQL - Creating donorof database offline
Please use speaker notes for additional information!
Generating forms with the wizard in Access
Department Array in Visual Basic
City Selection Entry Form Guide
Using SQL with Access I am adding queries to the stu table in SecondDB.accdb – a database that I created in class. SQL stands for structured query language.
Miscrosoft Office..
I am opeing Access 2003 in the Microsoft Office.
Report using ADO connection
Lessons Vocabulary Access 2016.
Access Database for CIT12
Environment/Report Tutorial
Please use speaker notes for additional information!
This is the example I want the class to put up to become comfortable with creating and populating a table in Access.
Using screens and adding two numbers - addda.cbl
Notes on SQL This slide show will introduce SQL using Access. It assumes only an introductory level of knowledge about Access.
Introduction to Access 2010
Access Test Questions Test Date: 05/05/16.
Updating Databases With Open SQL
GCSE Computer Science: OCR Programming Paper
Using SQL with Access I create a database named
Template for the portfolio.
Access Click on file and then you want a new database.
Updating Databases With Open SQL
Presentation transcript:

Please see speaker notes for additional information! SQL with VB and Access Please see speaker notes for additional information! Please check information on SQL from other sources.

SQL, ADO, Access At the Record Source for the ADO Contro click on ... to bring up the Property Pages as shown above.

Change to 1 - adCmdText and enter the SQL command. SQL, ADO, Access Change to 1 - adCmdText and enter the SQL command. You need to change to 1 adCmdText and deactivate Table or stored procedure name as Donor2000 - you can delete it or have it deactivated when you switch to adCmdText. select * means to select all fields and all records. I am only showing 3 fields so that is all that will appear from gives the name of the table that is being used.

SQL, ADO, Access All five records are now available because Select * from donor2000 means select all records.

SQL, ADO, Access This select is looking for all records where DCity = Fall River or Braintree.

SQL, ADO, Access These are the only two records on the database that meet the criteria.

Note that the record source now shows the SQL code. SQL, ADO, Access Note that the record source now shows the SQL code. After the SQL code was keyed in, it appeared in the record source.

SQL, ADO, Access Note that only one record met the criteria of DrYrFirst > 1999 and Dcontact = Ann Smith. Note that these are string fields so the value you compare against is enclosed in quotes. This is not required for numeric data. Both conditions had to be true.

Only the last record was not selected. SQL, ADO, Access Only the last record was not selected. The like used "19%" which means 19 followed by anything - a wildcard.

SQL, ADO, Access Only these three are selected and they are in order by city so New Bedford is shown first, followed by Quincy, followed by Weymouth (alphabetic order by city). Note that this used city in the criteria even though city is not shown on the form. Error messages arise if you have fields on the form that will remain empty because of the select.