Courses - Microsoft
Advanced Access Queries, Part 1
Access 207 very strongly recommended
Advanced Queries, Round Values, Form Total, Inner Outer Joins, Cascade Delete
This course is valid for Access 2000 through 2003.
If you are using Access 2007 or 2010, you will still benefit from this course.
You will find that the concepts are the same, but there are cosmetic differences between the versions.
Order before 12/14/2019 to
get a FREE upgrade to our
Access 2010 version!
Click here for details
Microsoft Access 220
Advanced Access Queries 1
Advanced Query Techniques, Round
Values, Form Footer Totals, Inner & Outer Joins, Cascade Deletes.
- Advanced Query
- Round Values
- Form Footer
- Inner & Outer
- Cascade Deletes
This class begins our look at Advanced Query
Techniques. We will start by creating a Sales Log system.
We'll build a sales log table where we will store basic order
information, like unit price, description, quantity, etc.
Next, we'll create a Sales Log Query which will
use Calculated Fields to figured out the extended price by
multiplying the unit price and quantity. We will also learn how to
calculate sales tax based on whether or not each sale is taxable -
cool stuff, using the IIF() function we learned about earlier.
We'll also learn how to round off values inside queries.
Next, we'll make a Sales Log Form where you
can enter in your sales information, pick your customer from a combo
box, and so on. There's a real cool trick on this form - one that people
have been emailing me to show them for a while... how to put a Total
in the form footer!
We'll learn about different types of Query
Joins, like Inner and Outer Joins. This is necessary if you want to,
for example, get a list of all of your customers with contact history -
whether or not they have contacts; or all sales whether or not there is
an associated customer record. This is very powerful stuff.
We'll also talk a lot more about Global
Relationships, Referential Integrity, Cascade Deleting
records, and more. This is a great class, and it's just the first in our
series of Advanced Query lessons.
1. Sales Log Table
Default SaleDate to =Date()
2. Sales Log Query
Calculated Query Fields
Multiply Two Fields Together
Calculate Extended Price
Add, Subtract, Multiply, Divide
Determine If Taxable
Calculate Order Total
Query Field Properties
Rounding Field Values
3. Sales Log Form, Part 1
Copy Customer Combo from ContactF
Bring in Calculated Fields from Query
Form Header and Footer
Move Labels to Header
4. Sales Log Form, Part 2
Create an Order Total in the Form Footer
SUM Function in Footer Field
Totals with Filters On
Show Sales for Specific Customer
Open a Form and Show Specific Records
5. Query Join Types
Only include rows where the joined fields from both tables are equal
Include ALL records from Table1 and matching fields from Table2
Show ALL Customers and Sales if they have them
Show ALL Sales and Customers if listed
6. Global Relationships
Enforce Referential Integrity
Tools > Relationships
Why I don't often use Global Relationships