![]() |
Project 3: Tables & Queries
|
![]() Did you want: Working with Databases: Access 2007, 2010, 2013, 2016 | ||||
|
![]() |
The power of a database comes from its queries. A query can sort records, select certain records, and display only certain fields or certain records and can even perform actions on those records. Types of Queries
Queries are often used as the source for forms and reports and for Lookup fields. Examples below are from LanguageArtsClasses.mdb. |
![]() |
Project 3: Tables & Queries
Search Glossary Appendix |
||||
Query with Multiple Tables or Other QueriesIn your previous work you used the Query Wizard to create a simple query based on just one table. In the next lessons you will create more complex queries using several related tables. Happily, you have a lot of control over what the query does. Example
Query - Students Allowed on Computer
Query with Calculated FieldsA powerful feature of queries is the ability to calculate new fields, like the Name field in the example above. In that case, text from three fields was combined into a single text string, along with some punctuation and spaces. You can also combine number fields like a Score with text fields for a name and with static text into a single text string, like "The score for Julie French was 95". You can do all kinds of mathematical calculations with number fields, like averaging six weeks grades for a semester grade or calculating profits and losses. The options are endless! Such new fields are often used in forms and reports to control the display so that there is no wasted space. In this project, you will create a number of calculated fields. Later you will create calculated controls for forms and reports, which are quite similar but do have some important differences. |
![]() |
~~ 1 Cor. 10:31 ...whatever you do, do it all for the glory of God. ~~ Last updated: 30 Apr 2012 |