Results 1 to 3 of 3

Thread: [RESOLVED] Multiply TextBox

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Resolved [RESOLVED] Multiply TextBox

    I have a percentage in my combobox and want to multiply it by the value in a textbox hereis the code i have, i would like to eliminate the /100, doesnt seem like the best way to do things? Am I wrong? Feels like there should be a more proper way to code this
    k Code:
    1. Listings.List1_status_adjstmenttxt.Text = Format(Val(Listings.List1_lptxt.Text) * Val(Me.statusadjstvaltxt.Text), "#,###") / 100

  2. #2
    Hyperactive Member Chathura's Avatar
    Join Date
    Nov 2005
    Location
    Sri Lanka
    Posts
    345

    Re: Multiply TextBox

    vb Code:
    1. Listings.List1_status_adjstmenttxt.Text = Format((Val(Listings.List1_lptxt.Text) * Val(Me.statusadjstvaltxt.Text)) / 100, "#,###")

    This should be ok
    If the post is heplful, Please Rate it
    Chathura Wijekoon

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: Multiply TextBox

    Quote Originally Posted by Chathura View Post
    vb Code:
    1. Listings.List1_status_adjstmenttxt.Text = Format((Val(Listings.List1_lptxt.Text) * Val(Me.statusadjstvaltxt.Text)) / 100, "#,###")

    This should be ok
    Thank you, the way I wrote it works too, just seemed funny, like there should be a more professional way of doing it LOL

    Thanks again

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