Update Table from IIf Calculated Form Field (1 Viewer)

xyba

Registered User.
Local time
Today, 04:56
Joined
Jan 28, 2016
Messages
189
I have a form (fmERA) which is bound to tblData. In the form I have textbox (txtCentreCalc) which contains an IIf statement.

What I am trying to do is update the calculated value of txtCentreCalc into a field (Centre) of tblData but I'm unsure how to do this.

Any help appreciated.
 

Minty

AWF VIP
Local time
Today, 04:56
Joined
Jul 26, 2013
Messages
10,366
If you can always calculate it, you wouldn't normally store it, as it means trying to capture all possible updates of the source values to then update your result field.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 04:56
Joined
Feb 19, 2013
Messages
16,603
You can do it with vba but agree with minty , don’t store calculated values in tables, calculate when required
 

Users who are viewing this thread

Top Bottom