Results 1 to 3 of 3

Thread: [RESOLVED] duplicate items in combo box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Posts
    18

    Resolved [RESOLVED] duplicate items in combo box

    hello .. i have a combo box that is load from a database field. what i want to do is when i select an item to display a description in a textbox.. It displays what i want to display fine, but everytime i click on the combo box to selected an item it duplicates the item. I tried the change event but doesn't display anything in the textbox..

    Private Sub cboPrice_Click()

    If Me.cboPrice.ListIndex = 0 Then
    Call showPrice(Me, 1)
    Else
    Call showPrice(Me, 2)
    End If


    End Sub

    thanx

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: duplicate items in combo box

    What is the style of the combobox ?

    Try cboPrice_Change event and see what happens.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Posts
    18

    Re: duplicate items in combo box

    it worked

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