dbTalk Databases Forums  

Calculated Fields Info Being Put back into table

comp.database.ms-access comp.database.ms-access


Discuss Calculated Fields Info Being Put back into table in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MTHarris
 
Posts: n/a

Default Calculated Fields Info Being Put back into table - 11-27-2003 , 08:41 PM






I have a database file that I have been working on which contains a form.
On that form I have several.. = twenty'ish unbound text box's which I put
formula's in that do various calculations. The thing is... what is the
most simply and effecient way to have the end calculated value put back into
the table that the forms is assigned to? I see it being some function
assigned to a button. I have been told that it can be done with macro or
code. However, does anyone have a sample database file that they might be
willing to share so I can go in and actually see how it is done? Any
assistance would be greatly appreciated.

Thanks

MTHarris

p.s. there are many fields that are based on the table on that form, the
twenty or so calculation text box's are in addition to those and are
calculating numbers input into those other fields.



Reply With Quote
  #2  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: Calculated Fields Info Being Put back into table - 11-28-2003 , 04:45 AM






Generally speaking, calculated values shouldn't be stored in your database,
since Access can easily recalculate those values each time it needs to (and
since calculated values can change, depending on the values feeding the
value).

However, just set the controlsource of the textbox to = the field you want
to save it to.

"MTHarris" <mtharrisky (AT) insightbb (DOT) com> wrote

Quote:
I have a database file that I have been working on which contains a form.
On that form I have several.. = twenty'ish unbound text box's which I put
formula's in that do various calculations. The thing is... what is the
most simply and effecient way to have the end calculated value put back
into
the table that the forms is assigned to? I see it being some function
assigned to a button. I have been told that it can be done with macro or
code. However, does anyone have a sample database file that they might be
willing to share so I can go in and actually see how it is done? Any
assistance would be greatly appreciated.

Thanks

MTHarris

p.s. there are many fields that are based on the table on that form, the
twenty or so calculation text box's are in addition to those and are
calculating numbers input into those other fields.





Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.