I am opeing Access 2003 in the Microsoft Office.
in Design View.
Here I have entered the first field named idno Here I have entered the first field named idno. I have made it a text type field with a field size of 5.
The last field that I put up was a numeric field and an integer The last field that I put up was a numeric field and an integer. It was name credits. I know have 5 fields that will apply to each record.
Now I have designated idno as the primary key by clicking on the key icon.
Now I am going to create the first record in the file by entering data in the fields.
This shows 5 records that I have created.
Now I am going to create a query Now I am going to create a query. I go to the main screen and select query. Here I am adding the table called student to the query so I can ask questions about the data.
Now I am bringing down fields.
I hve brought down all the fields - note that they can be brought down in any order.
Now I have included a criteria Now I have included a criteria. I only want to see records where credits are > 12.
This show the results where credits are > 12.
Now I am going to have two criteria in an AND relationship which means that both criteria have to be true. Note that when I test numbers I do not put quotes around the literal, but when I test text I put quotes around the literal
These are people where credits are > 12 and the major is "CI".
do nothing.
true to I display.
If not I have run out of chances.
These records meet the criteria of major = "CI" or credits > 12 These records meet the criteria of major = "CI" or credits > 12. Notice the one BU record has credits > 12.