Example of using a Criteria in Query: MS Access

Similar documents
Training Assessments Assessments NAEP Assessments (selected sample)

Writing Days and Months

Utility Software II lab 1 Jacek Wiślicki, jacenty@kis.p.lodz.pl original material by Hubert Kołodziejski

LAUREA MAGISTRALE - CURRICULUM IN INTERNATIONAL MANAGEMENT, LEGISLATION AND SOCIETY. 1st TERM (14 SEPT - 27 NOV)

Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS...

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Introduction To Microsoft Office Excel Bob Booth July 2008 AP-Excel8

STUDENT ASSESSMENT TESTING CALENDAR

Breen Elementary School

Lesson Lesson 2.2 ~ Adding Integers

I look forward to doing business with you and hope we get the chance to meet soon

TIMESHEET EXCEL TEMPLATES USER GUIDE. MS-Excel Tool User Guide

Joins Joins dictate how two tables or queries relate to each other. Click on the join line with the right mouse button to access the Join Properties.

Chapter 5. Microsoft Access

Check out our website!

MICROSOFT ACCESS STEP BY STEP GUIDE

Second Grade Summer Math Packet. Name Meriden Public Schools

Microsoft Access 3: Understanding and Creating Queries

Introduction to Microsoft Access

Agile Development. Solution Guide. Coordinate Anything PRODUCT DEVELOPMENT.02

Network Planning and Analysis

Lab 2: MS ACCESS Tables

JAMS 6.X Client Features 3. Working with Jobs 4-5. Submitting Jobs Manually 6-7. Working with Setups 8-9. Working with Views 10-14

Excel Database Management Microsoft Excel 2003

VMG ONLINE TRAINING SCHEDULE WINTER 2016

Comp 5311 Database Management Systems. 3. Structured Query Language 1

The University of Akron Department of Mathematics. 3450: COLLEGE ALGEBRA 4 credits Spring 2015

U11 Boys Black March 21st Monday 6:00-7:30 p.m. Damien Training Field 2 March 24th Thursday 4:30-6:00 p.m. Damien Training Field 2 March 28th Monday 6

Rational Software. Getting Started with Rational Customer Service Online Case Management. Release 1.0

Sample- for evaluation only. Introductory Access. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

Using Outlook Outlook Screen

Click to create a query in Design View. and click the Query Design button in the Queries group to create a new table in Design View.

Creating QBE Queries in Microsoft SQL Server

Microsoft Access 2010 Tables & Field Properties

UK TRANSFER DEGREE (LAW) YR 2 TIMETABLE

Key skills application of number Adult numeracy Level 1. Test Paper L

3.GETTING STARTED WITH ORACLE8i

Click&DECiDE Business Application Intelligence

Access Queries (Office 2003)


Introduction to Microsoft Jet SQL

Northeast State Internet Class Schedule

Short Notes on Stata (version 10) Data Functions and Stuff

MS Excel Template Building and Mapping for Neat 5

WORDS THEIR WAY. Thursday- FREE CHOICE: See the attached page with Free Choice options and assist your child in completing this activity.

How to Design a Form Report (RTF) Output

Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25)

V2Soft Viki Software

MS Access Lab 2. Topic: Tables

STAR TRIBUNE NEWSPAPER IN EDUCATION PROGRAMS Help students get in touch with their world.

Tutorial Microsoft Office Excel 2003

COURSE DESCRIPTION. Queries in Microsoft Access. This course is designed for users with a to create queries in Microsoft Access.

ACADEMIC CALENDAR June 2016

3 Data Properties and Validation Rules

INDIAN INSTITUTE OF TECHNOLOGY, BOMBAY

There e really is No Place Like Rome to experience great Opera! Tel: to discuss your break to the Eternal City!

MS Visual C++ Introduction. Quick Introduction. A1 Visual C++

Rail Vehicle Dynamics (SD2313), 8 credits

Creating International Wire Transfer Payments Reference Guide

thetrilife.com 12 Week First Sprint Triathlon Training Program

USB Recorder. User s Guide. Sold by: Toll Free: (877)

Computer Training Centre University College Cork. Excel 2013 Level 1

MICROSOFT ACCESS 2003 TUTORIAL

Statewide Testing Calendar

How To Monitor A Log File On Kserver On A Linux Computer Or Macintosh (Amd64) On A Macintosh 2.5 (Amd32) On An Amd64 (Amd86) On Your Computer Or Your Macintosh 3.5

Excel 2007 A Beginners Guide

Julius the Baby of the World - Day 1 Maggie Lumbreras - First Grade Sept. 30, 2008

Strathkinness Primary School

Template Guide. HTML . Release 8. This template guide is an overview of how to use and customize an HTML templates with Conga Composer.

QW SQL Wizard (July 13, 2010)

Using SQL Queries in Crystal Reports

PAYLINE USER GUIDE. 1 Logging into Payline. 2 - Processing a Purchase

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, Sample not collected

SEARCH RITE ESTATE AGENTS

How to Concatenate Cells in Microsoft Access

FUNCTIONAL SKILLS MATHEMATICS LEVEL 2

Important Tips when using Ad Hoc

Unit 10: Microsoft Access Queries

Assessment For The California Mathematics Standards Grade 2

STEP-BY-STEP GUIDE FOR DOCUMENT UPLOAD IN epct (PUBLIC AND PRIVATE SERVICES)

Selecting Features by Attributes in ArcGIS Using the Query Builder

Chapter 1 Overview of the SQL Procedure

Microsoft Access Creating Filters and Tables

SERVICE HOTLINE. REFERENCE NUMBER: 157/ October 2015 TRADING, CLEARING, SETTLEMENT AND SERVICES AVAILABILITY DECEMBER 2015 AND JANUARY 2016

Market Rules Notice - Market Specification for Spot Power Market. Issue Date: 20 January Effective Date: 03 February 2015

SOCIAL ENGAGEMENT BENCHMARK REPORT THE SALESFORCE MARKETING CLOUD. Metrics from 3+ Million Twitter* Messages Sent Through Our Platform

RESEARCH ASSISTANCE. The Portal is also accessible to the general public but restricted to the free case law databases.

Oracle Database: SQL and PL/SQL Fundamentals

Using Ad-Hoc Reporting

isupplier User Guide Supplier

Computer s History Quick Start Guide & Safety Tips

525 South 29 th Street. Harrisburg, PA Learning Management System User s Guide

Analysis One Code Desc. Transaction Amount. Fiscal Period

Functional Skills Mathematics Level 2 sample assessment

Creating Advanced Reports with the SAP Query Tool

MATHEMATICS Unit Decision 1

TRAINING PROGRAM OVERVIEW

7 Using the Alarm Ready Schedule

Business e-cash Manager Plus Automated Clearing House (ACH)

Transcription:

Example of using a Criteria in Query: MS Access Example of using a Criteria in Query 1) =, >, <, >=, <=, <> (not equal) comparison operator1 These operators can be used for number, currency, date and text of data type field. The meaning is the same meaning for mathematic operator. 2) Using Is null It is used as a criteria to get the empty data of that field. For example, you want to get a list of task that has not completed or finished. You can put the Is null in the criteria on FinishDate field. 3) Using Is not null Is Not Null operator works in opposite direction from the Is Null operator. We can use to get a list of task completed by put Is Not Null on the criteria of FinishDate field as shown in the picture below:

4) Using Date() and Date()-1 Date() is used in criteria to get today date like put in the DueDate field to see if any task due today (4/28/14) Date()-1 is today date -1 day is yesterday. If today is 4/28/14 then Date() -1 is 4/27/14. 5) Use # for Date data type We use the pound sign (#) in the front and end of date to get the value from the date data type field. Example below is a criteria to get the list of task start from 3/1/14 until now.

6) Create new field in query A new field can be created with a new name followed by colon( : ) and a reference a format to a main field name. for instance, creating a new field name YearOfStart from StartDate field with format as year 2014 and a Project Name as copy of field TaskName. 7) Format month as 1, Jan, January The previous example shows the year format as 4 digit of year number (2014). The format of month is similar method.

Example of month format: M = 1,2,3,..3 Mm = 01,02,03,. Mmm = Jan, Feb, Mar, Mmmm = January, February, March, Sometime we want to sort the month from January to December as 1-12, we can use the format of mm to get a number of 01 12 and sort it Ascending or Descending as shown on the above example. 8) Format Day ddd for Mon, Tue, Wed, or dddd for Monday, Tuesday, Wednesday, 9) Format Date as d = 1,8,15,27, or dd = 01,08,15,27 10) Enter parameter We use a bracket [ ] and put a message inside the bracket for instruction what to do. We put [Enter a year ex 2013 ] to tell use to enter a year in the YearStart field that has a format of 4 digit year (2013).

We can use two separate parameters on two separate fields in criteria. For instance, we want to get list of task that started and finished from the specific date and we want the users to enter their own date. Below is an example of using two parameter on date fields. a. Enter two parameters on StartDate and FinishDate field b. Enter a year number with a 4-digit number format as 2013

c. Get the result 11) Like operator Like is mostly used in the text data field and follow by question mark (?) and the asterisk or star (*) in the front or back or both front and back of the keyword. The question mark (?) represents a single character only. Like can also be used in the parameter entry as example below: a. Enter like with parameter on the criteria

b. Enter m in the parameter c. Get result of customer list with name starts with M only 12 ) AND operator AND operator can be used for text, number and date field. The result of AND will be narrowed down to match the parameter in the criteria. AND can be used inside one field or on two or more fields. AND can be used by entering more than one criteria in the same line, but different field name as show below:

13) OR operator OR operator can be used for text, number and date field. The result of OR will be combined from the result of either match the 1 st criteria or the 2 nd criteria. It can be used inside one field or on two or more fields. OR can be used by entering more than one criteria in different field in one query, but must entered in a different line for each criteria as show below: 14) Between..And The Between And can be used in the text, number and date field. The syntax of operator is like >= x <= Criteria Entry Result Between 1 and 100 Display a list that has number from 1 to 100 Between #1/1/14# and #12/31/14# Display a list that has a date start from1/1/14 to 12/31/14 or whole year of 2014 Between M* And T* Display a list of name that start with letter M to letter T It can be used with the parameter entry from the user as shown on the example below:

15) Link to field on the opened form The criteria of field in the query can be linked to that field in the form. The form that linked must be opened in order to have the query works. For instance, we need a query to show a record of the customer that shows in the Customer form, the criteria in the Customer_id will be [Forms]![Customer]![Customer_id]. The query links the customer record to Customer form by Customer_id as screen shot below: 16) Rename field name: A field name can changed in the query. The format of changing new name is a new name followed by colon (:) and the old field name as an example below of changing a field name CustomerName to Customer.