By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,482 Members | 2,438 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,482 IT Pros & Developers. It's quick & easy.

Equation in Textbox

100+
P: 101
Hi,
My project is in MS Access.
In that I have one form which, I am using for data entry.
In that I have one Textbox in which I want to enter like this
10*20+20*30+30*40
when I Lostfocus of that Textbox than in that same textbox I want the result of this equation like
2000
Its simple I think so, but I don't know how to do it.
Thanks
Jan 4 '08 #1
Share this Question
Share on Google+
2 Replies


100+
P: 101
I got the answer.
thanks
Jan 4 '08 #2

ADezii
Expert 5K+
P: 8,597
Hi,
My project is in MS Access.
In that I have one form which, I am using for data entry.
In that I have one Textbox in which I want to enter like this
10*20+20*30+30*40
when I Lostfocus of that Textbox than in that same textbox I want the result of this equation like
2000
Its simple I think so, but I don't know how to do it.
Thanks
billa856, just a small suggestion. Anytime you perform multiple operations like this, it is always a good idea to utilize Parenthesis to explicitly set the Order of Precedence as in:
Expand|Select|Wrap|Line Numbers
  1. ((10*20) + (20*30) + (30*40))
Jan 4 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.