If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How update a Table value with Form's calculated control?
I am calculating a total in a calculated field on a Form. I then want to save
this value in a corresponding field in an underlying table. Whatever I try, the Table value is not being saved! |
#2
|
|||
|
|||
You typically don't save a calculated value in a table. If you need that
number again, calculate it again. "Gerry" wrote in message ... I am calculating a total in a calculated field on a Form. I then want to save this value in a corresponding field in an underlying table. Whatever I try, the Table value is not being saved! |
#3
|
|||
|
|||
You can save the calculation in a Query or Report and it will always be
there. There is no reason to have it in your Table. Sam "Rick B" wrote: You typically don't save a calculated value in a table. If you need that number again, calculate it again. "Gerry" wrote in message ... I am calculating a total in a calculated field on a Form. I then want to save this value in a corresponding field in an underlying table. Whatever I try, the Table value is not being saved! |
#4
|
|||
|
|||
On Wed, 19 Jan 2005 06:09:06 -0800, "Gerry"
wrote: I am calculating a total in a calculated field on a Form. I then want to save this value in a corresponding field in an underlying table. Whatever I try, the Table value is not being saved! Just to agree with Rick and Sam: here's my "boilerplate" on the subject. Storing derived data such as this in your table accomplishes three things: it wastes disk space; it wastes time (almost any calculation will be MUCH faster than a disk fetch); and most importantly, it risks data corruption. If one of the underlying fields is subsequently edited, you will have data in your table WHICH IS WRONG, and no automatic way to detect that fact. Just redo the calculation whenever you need it, either as a calculated field in a Query or just as you're now doing it - in the control source of a Form or a Report textbox. John W. Vinson[MVP] |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to read a table record by record and process and update another table | Karen Middleton | Running & Setting Up Queries | 1 | January 3rd, 2005 12:30 PM |
Problem with Calculated Control in Report | Jere Shaw | General Discussion | 2 | December 19th, 2004 11:17 PM |
Manual line break spaces on TOC or Table of tables | Eric | Page Layout | 9 | October 29th, 2004 04:42 PM |
Here's a shocker | Mike Labosh | General Discussion | 2 | October 26th, 2004 05:04 PM |
Complicated Databse w/many relationships | Søren | Database Design | 7 | July 13th, 2004 05:41 AM |