[RESOLVED] Calculations in Textboxes
Salute to all the Guru,
Lets say,
I have 2 Textboxes presentstock.text and consumed.text
i want to minus consumed.text (value) from presentstock.text
i wrote
VB Code:
presentstock.text = val(consumed.text) - val(presentstock.text)
but its not working :(
Need Help;
Re: Calculations in Textboxes
Quote:
Originally Posted by Plucky
Salute to all the Guru,
Lets say,
I have 2 Textboxes presentstock.text and consumed.text
i want to minus consumed.text (value) from presentstock.text
i wrote
VB Code:
presentstock.text = val(consumed.text) - val(presentstock.text)
but its not working :(
Need Help;
What is not working about it?
Re: Calculations in Textboxes
Mr. Hack thanx for attention.
The value appears in the presentstock.text with (-) minus sign..
help, plz
Re: Calculations in Textboxes
hey first of all you shoul make another text box for that
3 Textboxes presentstock.text, consumed.text and result
result = (consumed.text - presentstock.text)
Re: Calculations in Textboxes
shouldn't it be just the opposite of what you are doing, like this:
VB Code:
presentstock.text = val(presentstock.text) - val(consumed.text)
Pradeep :)
Re: Calculations in Textboxes
Hi Good People,
Thanx its working now..