Chapter 16
Express Yourself with Formulas
IN THIS CHAPTER
Writing an expression
Performing complex calculations
Understanding calculations and text fields
Using Expression Builder
Efficient database design requires that tables contain only the necessary fields. Too many fields can cause a table to load slowly — you won’t notice the difference with a few hundred records, but you certainly will when you reach thousands or hundreds of thousands of records. So what fields are often added unnecessarily to a table’s design? The short answer: fields that could be generated from calculations on data stored in other fields.
For example, suppose you have a Commitment table with a DonationCommitment field and a Donation table with a DonationAmount field. You may be tempted to add an AmountOwed field to your Donation table that stores the result of subtracting DonationAmount from DonationCommitment. This is unnecessary because Access can perform these calculations on the fly — in what’s called a Calculated field.
A Calculated field takes information from another field or fields in the database ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access