Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
When to Use Calculated Fields
Rick R 
      
15 years ago
Access 2010 offers something new called a CALCULATED FIELD where you can have a calculation performed in a TABLE. For example, let's say you're dealing with products. You have a UnitCost and a SalePrice. You can easily calculate your profit by saying SalePrice-UnitCost.

Now, those of you who know me and have taken my classes know that I abhor storing values in a table that you can use a QUERY to calculate. That's an easy calculation for a query. Storing needless data in your tables makes them big and slow.

HOWEVER...

There is always an exception to every rule. The major difference with Calculated Fields is that they can be used where you have really complex calculations AND you're running the query A LOT. With a Calculated Field, the RESULT of the calculation is actually stored in the table and is updated automatically whenever you modify one of the other fields that it depends on.

So, if you have a GIANT query with tens-of-thousands of records, and you run reports on this query ALL THE TIME, you might want to consider using a calculated field IF your database is running slow. Access doesn't have to perform all of those calculations EVERY TIME you run the query.

For the average database, I still maintain that keeping your calculations in a QUERY is better. But... it's my job to point out new things for you. If your giant queries are running REALLY slow and this might be the reason why, now you have a new tool in your arsenal to consider.

Enjoy!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 7:26:45 PM. PLT: 1s