[RESOLVED] Subtracting from an Integer
I got a random number generator and it works fine. I click a button and it generates a number between 60 and 100 in a text box. Now i need another number. I need to use the number that was already generated but i want to subtract 40 from it to get my second number so that it can out put it in another text box. Is there a simple way to do this?
Re: Subtracting from an Integer
this is in office right? Which office program? You can embed formulas inside textboxes in access.
Re: Subtracting from an Integer
I'm not really using any Office XP programs. I'm just using Visual Basic 2005.
Is there a way i can do it with Just Visual Basic?
Re: Subtracting from an Integer
yes but you posted it in the office development forum.
textbox2.text = str(val(textbox1.text) - 40)
Re: Subtracting from an Integer
Oh, i thought this was anything to do with business stuff. Sorry and thanks.
Re: [RESOLVED] Subtracting from an Integer
not exactly. this particular issue should have been posted in the vb.net forum since that's the program you use. Office development forum is more along the lines of programming using the macro language and vba inside office programs.