P
postman
where can I make calculations in bound text boxes on a form work,
I'm building a cash register form with these text boxes bound to a table:
SUB TOTAL
GST
DISCNT (is a combo box with 'value list' row source: .1;.15;.20;.25;.50)
DISCOUNT AMNT
TOTAL
TENDERED
CHANGE.
If I have these form text boxes 'unbound' then its simple to make it work
with the following calculations in the corresponding control Source of the
text boxes:
SUB TOTAL (1st data input)
GST=[Total]*0.1
DISCNT 10% (.1) / 15% (.15) / 20% (.20)
DISCOUNT AMNT=[SUB TOTAL]*[DISCNT]
TOTAL=[SUB TOTAL]-[DISCNT AMNT]
TENDERED (2nd data input)
CHANGE=[TENDERED]-[TOTAL]
Tabbing through the boxes after data inputs makes the calcs work.
I have tied using the SQL design view but does not seem to work.
Where do the calculations go if controls are bound?
Thanks in advance.
I'm building a cash register form with these text boxes bound to a table:
SUB TOTAL
GST
DISCNT (is a combo box with 'value list' row source: .1;.15;.20;.25;.50)
DISCOUNT AMNT
TOTAL
TENDERED
CHANGE.
If I have these form text boxes 'unbound' then its simple to make it work
with the following calculations in the corresponding control Source of the
text boxes:
SUB TOTAL (1st data input)
GST=[Total]*0.1
DISCNT 10% (.1) / 15% (.15) / 20% (.20)
DISCOUNT AMNT=[SUB TOTAL]*[DISCNT]
TOTAL=[SUB TOTAL]-[DISCNT AMNT]
TENDERED (2nd data input)
CHANGE=[TENDERED]-[TOTAL]
Tabbing through the boxes after data inputs makes the calcs work.
I have tied using the SQL design view but does not seem to work.
Where do the calculations go if controls are bound?
Thanks in advance.