A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How update a Table value with Form's calculated control?



 
 
Thread Tools Display Modes
  #1  
Old January 19th, 2005, 02:09 PM
Gerry
external usenet poster
 
Posts: n/a
Default 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  
Old January 19th, 2005, 03:08 PM
Rick B
external usenet poster
 
Posts: n/a
Default

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  
Old January 19th, 2005, 06:25 PM
Sam
external usenet poster
 
Posts: n/a
Default

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  
Old January 19th, 2005, 10:16 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 02:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.