Results 1 to 3 of 3

Thread: Adding the values of two textboxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    12

    Post

    HI,

    How I have two text boxes that contain numbers. Is it possible to add the two text boxes together?
    somthing like
    var= text1.text + text2.text
    but that doesn't work.

    Thanks!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    You must convert the text to values:
    var = Val(Text1.Text) + Val(Text2.Text)

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    12

    Post

    Thanks for the quick reply, that worked great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width