Results 1 to 3 of 3

Thread: Problem with Combo Box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    chennai,tamilnadu,india
    Posts
    29
    Hi all,

    I have combo with items "Sales Tax 25".When i select this item only 25 should be displayed in the text of combo.

    Thanx
    Murali

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316
    in the combo1 click Method

    sub combo1_click()
    combo1.text = str(val(mid(combo1.text,len(trim(combo1.text))-2)))
    endsub

    This will give you the last two characters (numbers) you can change it to just the last 2 chars like this
    sub combo1_click()
    combo1.text = right(trim(combo1.text),2)
    endsub
    if you want

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    chennai,tamilnadu,india
    Posts
    29
    Hi john,

    What u told has been tried...
    But what happens is the text gets cleared after the event.
    any other way??
    Thanx...
    Regards
    Murali

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