Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Add blank item in combobox (2000)

    I use the tipical routine to fill a combobox...
    now after the conmbobox is filled how to add in first position of combobox a blank line?
    i use this but the code go in error:-)

    Me.COMBO_AREA.AddItem -1, ""

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Add blank item in combobox (2000)

    Please read the help for AddItem. The first argument should be the text for the new item, and the second argument the position of the new item (starting with 0). So:
    <code>
    Me.COMBO_AREA.AddItem "", 0</code>

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add blank item in combobox (2000)

    sorry... tks.

Posting Permissions

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