Problem Storing a value calculated by unbound text boxes

Mikk

Registered User.
Local time
Today, 17:04
Joined
Mar 5, 2006
Messages
23
I have 3 values in unbound text boxes and a 4th text box that is calculating the sum of the first three text boxes, i need the result of the calculation to be stored in the field "Total Cost" that is also on this form.

Any ideas

Cheers Mikk
 
It is almost always a bad idea to store calculated values in a field in a table. If you must then the form's BeforeUpdate event is where you can accomplish the task smoothly. What would be the problem with calculating the value each time?
 
I just thought it would be better that way, what would i need to put in the before update event? atm i have the boxes set control source like: =IIf([Name of Yes/No field]=True,15,0) and the calculating unbounded box: =[Text38]+[Text40]....etc. Thanks for the reply RG!

Hope you can help

Mikk:D
 
Last edited:
[Total Cost] = UnboundTextBoxName

Using the names of your [Field] and UnboundTextBoxName of course.

If *any* of the other controls change then you will have a stored calculation that is not correct and no easy way to identify it!
 
Decided to change my form around and do it a different way, thanks for your help RG!
 

Users who are viewing this thread

Back
Top Bottom