How to save calculated values in MS Access

前端 未结 3 1117
花落未央
花落未央 2021-01-26 22:27

I have a textbox in a form that I created.

I want to add an expression in the textbox\'s Control Source property. I also want to bind the textbox to a field in the tabl

3条回答
  •  孤街浪徒
    2021-01-26 23:06

    You could link the text box to the table control source and then set the value of the text box to the result of the expression in the AfterUpdate property on the two objects the contain the values you want to add.

    For example

    me.textbox.value= int1 + int2
    

    This value should then be written to the table.

提交回复
热议问题