Form Update (1 Viewer)

Misterpiz

New member
Local time
Today, 07:20
Joined
May 9, 2018
Messages
5
Good Morning,

I have a form that as several fields that "mathematical" calculations. For instance, I have a Billed, a Rate and Margin text box. If I update the Billed value, the Rate and Margin values should update, but they do not. I have tried using after update even me.requery, me.recalc. and me.refresh.:banghead:

Any thoughts?

Misterpiz
 

Ranman256

Well-known member
Local time
Today, 10:20
Joined
Apr 9, 2015
Messages
4,338
if its on the form, set the text box control source to the other form textbox names:

txtSpeed = txtDist / txtTime
 

Misterpiz

New member
Local time
Today, 07:20
Joined
May 9, 2018
Messages
5
if I change the control source, how will it be saved to the table that I am needing the information to be stored?
 

Minty

AWF VIP
Local time
Today, 15:20
Joined
Jul 26, 2013
Messages
10,402
In theory unless these calculated values are time critical (e.g. could change over time) you shouldn't store them, as they can always be calculated.

If any of the underlying values change then you need to somehow capture that and re-save the new value, which is messy.
 

Users who are viewing this thread

Top Bottom