Skip to Content
Access® 2007 For Dummies®
book

Access® 2007 For Dummies®

by Laurie Ulrich Fuller, Ken Cook, John Kaufeld
December 2006
Intermediate to advanced
409 pages
8h 3m
English
Wiley
Content preview from Access® 2007 For Dummies®

Chapter 15. Calculating with Your Data

In This Chapter

  • Developing an expression

  • Performing complex calculations

  • Calculating text fields

  • Using the Expression Builder

Efficient database design requires that tables contain only 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 with a few hundred thousand. Too many fields can also eat up precious disk space. So what fields are often added to a table's design unnecessarily? Fields that could be generated from calculations on data stored in other fields.

For example, suppose you have a products table with a unit price field and an orders table with number of units ordered field. You may be tempted to add an amount field to your orders table that stores the product of the unit price and the quantity ordered. 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 in the database and performs some arithmetic to come up with new information. In fact, a calculated field can take data from more than one field and combine information to create an entirely new field if that's what you want. You can perform simple arithmetic, like addition and multiplication, or use Access's built‐in functions, such as Sum and Avg (average), for more difficult calculations. For more on using the built‐in functions, see Chapter 14.

In this chapter, you build ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Access™ 2007 Bible

Access™ 2007 Bible

Cary N. Prague, Michael R. Irwin, Michael R. Groh, Jennifer Reardon, Joseph C. Stockman, Gavin Powell

Publisher Resources

ISBN: 9780470046128Purchase book