nhorton79
Registered User.
- Local time
- Tomorrow, 05:22
- Joined
- Aug 17, 2015
- Messages
- 148
Hi All,
Wanting to have a textbox be able to perform calculations prior to saving.
We are often working with square meterage of products in our quantity textbox (txtQty). So would like for users to be able to enter a calculation and have this evaluate prior to updating.
e.g. typing in 10*4/10 would result in 4
I figured that I could maybe put some VBA in the BeforeUpdate event of the textbox using the Eval function.
I've tried entering:
Me.txtQty = Eval(Me.txtQty)
But this doesn't work. Error being the value you entered isn't valid for this field.
Any ideas? Has anyone done anything like this before?
Wanting to have a textbox be able to perform calculations prior to saving.
We are often working with square meterage of products in our quantity textbox (txtQty). So would like for users to be able to enter a calculation and have this evaluate prior to updating.
e.g. typing in 10*4/10 would result in 4
I figured that I could maybe put some VBA in the BeforeUpdate event of the textbox using the Eval function.
I've tried entering:
Me.txtQty = Eval(Me.txtQty)
But this doesn't work. Error being the value you entered isn't valid for this field.
Any ideas? Has anyone done anything like this before?