D david444 Registered User. Local time Today, 03:34 Joined Mar 11, 2003 Messages 12 Apr 27, 2003 #1 I have a form which has an unbound text box on it. The unbound textbox calculates a total from two others fields on the same form. I need to know how to save the value calculated by the unbound textbox into a field of the source table of the form.
I have a form which has an unbound text box on it. The unbound textbox calculates a total from two others fields on the same form. I need to know how to save the value calculated by the unbound textbox into a field of the source table of the form.
G geralf Registered User. Local time Today, 03:34 Joined Nov 15, 2002 Messages 212 Apr 27, 2003 #2 david, You should not store calculated fields unless you have very good reasons for it. At the moment I can't think of one right now . You might get problems with data concistency. However if you must...... Set your StoreField to the Calculated value, something like this: Forms!YourFormNameHere!YourControlName=CalculatedControl where ControlName is a field on the form which should store the value in the underlying table. The best thing to do would do the calculation when you need it. hth Gerhard
david, You should not store calculated fields unless you have very good reasons for it. At the moment I can't think of one right now . You might get problems with data concistency. However if you must...... Set your StoreField to the Calculated value, something like this: Forms!YourFormNameHere!YourControlName=CalculatedControl where ControlName is a field on the form which should store the value in the underlying table. The best thing to do would do the calculation when you need it. hth Gerhard