Presentation is loading. Please wait.

Presentation is loading. Please wait.

Query Design View To create an Access query, you use the Query Design window. Youspecify a few data sources and fields, add a criteria expression or two,and.

Similar presentations


Presentation on theme: "Query Design View To create an Access query, you use the Query Design window. Youspecify a few data sources and fields, add a criteria expression or two,and."— Presentation transcript:

1 Query Design View To create an Access query, you use the Query Design window. Youspecify a few data sources and fields, add a criteria expression or two,and perhaps specify a sort order. What you might not realize is that there'smore to working in this window than just creating a query.

2

3

4 STATUS FIELD - STATUS TABLE - TABLE-01 SORT - SHOW -
CRITERIA - MR, MISS,MRS.

5 DATE OF BIRTH FIELD - DATE OF BIRTH TABLE - TABLE-01 SORT - SHOW -
CRITERIA - <10/02/2010,

6 10/02/2010, <=10/02/2010, >10/02/2010, >=10/02/2010, NOT<10/02/2010, NOT>10/02/2010.

7 NAME FIELD - NAME TABLE - TABLE-01 SORT - SHOW -
CRITERIA - LIKE”[A-F]*”/[NAME]>=“A” AND [NAME]<=“F” LIKE ”A*” LIKE ”K*”, LIKE ”*ASF*”

8 SALARY FIELD - SALARY TABLE - TABLE-01 SORT - SHOW -
CRITERIA - >=5000, <5000

9

10 Total:[Tamil]+[Maths]+[Science]

11 Pass/Fail

12 MS Access: iif Function
In Access, the iif function returns one value if a specified condition evaluates to TRUE, or another value if it evaluates to FALSE. The syntax for the iif function is: iif ( condition, value_if_true, value_if_false ) condition is the value that you want to test. value_if_true is the value that is returned if condition evaluates to TRUE. value_if_false is the value that is return if condition evaluates to FALSE.

13 Marks-Grade 100 – 85 “A” “B” 74 – 65 “C” 64 – 55 “D” 54 – 35 “S” 34 – 00 “W” IIF([MARKS]>=85,”A”, IIF([MARKS]>=75,”B”, IIF([MARKS]>=65,”C”, IIF([MARKS]>=55,”D”, IIF([MARKS]>=35,”S”,”W”)))))

14

15 In this example, if the [Time Out] field is less than or equal to 12 o'clock noon, then the iif function will return the number of hours that have elapsed between [Time Out] and [Time In]. If [Time Out] is greater than 12 o'clock noon, then the iif function will return subtract 30 minutes from the time worked.

16 In the example above, the iif function will return "Yes" if both the ContactTitle = "Owner" and City = "Madrid". If one or both of these conditions is not met, it will return "No".

17

18

19

20

21 Query Wizard A query is a way to view, analyze, or organize your records. You can also make some kinds of changes using a query, like deleting or updating a group of records. The Access query wizard makes it very easy to create simple queries. It walks you through most of the choices that you need to make. Afterwards, you can use the Query Design View to add sorting and criteria.

22 Form in access 2007 A form in Access 2007 is a database object used to display, edit and enter data from a data source such as a query or table.

23

24 Form design Form design in Microsoft Access and user interface design in general are important components of all interactive database management systems.  Microsoft Access form developers have a nearly infinite combination of fonts, colors and layouts from which to choose.

25 Create attractive databases with the essential features any Access application needs in minutes, without becoming an expert in Visual Basic. Configurable menu layouts, color schemes, and advanced features make UI Builder a must-have for every Access user.

26 criteria When constructing a query or a filter, you need to tell Access what to look for in each field. You do this by defining criteria - typing something (an "expression") into the Criteria cell of the query or filter grid. If you do not define any criteria for a particular field

27 A flexible search form provides several boxes where a user can enter criteria. An efficient search form creates the criteria from only those boxes where the user enters a value.

28 Result: IIF([total]>=200,"pass","fail")

29 Using the Forms Wizard in Access 2007
The Form Wizard in Access will step you through the process of creating customised forms. You'll find these custom forms to be far more useful than the basic pre-defined forms the program provides. To start the Forms Wizard, choose the table or query you want to use for your form from the Navigation pane. Click Create > Forms > More Forms. This will bring up the first dialogue box of the Forms Wizard.

30

31 100 – 85 “A” “B” 74 – 65 “C” 64 – 55 “D” 54 – 35 “S” 34 – 00 “W”

32

33 What is a Form Wizard. Access provides several quick-create form tools on the Create tab, each of which lets you create a form with a single click. However, if you want to be more selective about what fields appear on the form, you can use the Form Wizard instead. The wizard also lets you define how the data is grouped and sorted, and you can use fields from more than one table or query (provided that you specified the relationships between the tables and queries beforehand).


Download ppt "Query Design View To create an Access query, you use the Query Design window. Youspecify a few data sources and fields, add a criteria expression or two,and."

Similar presentations


Ads by Google