Automatic calculation

BlueOysterCult

Regular
Joined
Oct 3, 2003
Messages
84
Hello All,
First, this is not a homework question. Secondly, I was wondering if one could have an app when numbers are entered to automatically (with the help of a comboBox) do the calculation and print to a textBox
Rob
I think I am going in the wrong direction with "Validating fields"

Thanks
 
If you have one sub to do the calculation, and call it from the Validate event of the controls, it should do the trick. You don't necessarily have to validate the input, but the Validate input is called when you enter data, and leave the control.
 
Every data entry control has a Validating event which is fired whenever you try to leave the focus of the control. Just call the sub from there.
 
Back
Top