Multiplying Numbers in MS Access -
i want able multiply 2 numbers taken 2 columns , display in third column.
i have 2 columns user types in numbers , third 1 automatically multiplies numbers user hits enter.
but have 100 textboxes these , not want write code every single 1 of them.
is there way perform operation in excel? easy in excel.
here have write every single textbox:
private sub text03_gotfocus() text05.value = val(text03.value) * val(text04.value) * 12 end sub private sub text03_lostfocus() text05.value = val(text03.value) * val(text04.value) * 12 end sub private sub text04_gotfocus() text05.value = val(text03.value) * val(text04.value) * 12 end sub private sub text04_lostfocus() text05.value = val(text03.value) * val(text04.value) * (12) end sub
if understand situation correctly, simpler open form in design view, open property sheet text05 text box , use control source property (on data tab of property sheet):
= val([text03]) * val([text04]) * 12 then should not need vba code got/lost focus events. access automagically update text05 whenever values in text03 or text04 change.
Comments
Post a Comment