|
-
Nov 26th, 1999, 01:55 AM
#1
Thread Starter
New Member
Could you please help, this I know is a simple problem but I can't get the answer to work. I have three text boxes (text1, text2, text3) and a command button. My application is when I press the command button I want text1 to add to text2 and result in text3 using the "+" key. The result I am getting is Text1Text2 beside themselves as if I was using a "&" key.
Please Help, thanks bjk
-
Nov 26th, 1999, 02:00 AM
#2
Member
text boxes are text by nature
you need to perform functions on numbers
text3.text = Cint(Text1.txt) + Cint(Text2.txt)
-
Nov 26th, 1999, 11:44 AM
#3
Frenzied Member
You might want to do a check to see if the field is numeric before converting it to an int. Text data might turn it into a Type 13 error...
Using "Val" might also give you the answer you want, IF you don't care to check.
-
Nov 26th, 1999, 10:01 PM
#4
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|