Results 1 to 2 of 2

Thread: DBCombo dropdown list

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Post

    I have a basic database table containing names for selection. I am using a dropdown list so that the user must select an item from the table. If I want the user to be able to enter a blank, after one has been selected, do I have to put ablank entry in the table? Or is there an easier way?

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    What I've done in the past is put a small button next to the drop down with an "X" as the caption. The click event of this button would be

    ComboBox1.ListIndex=-1 (for a normal combobox control)

    or

    DBComboBox1.BoundText="" (for a database combobox)

    This prevents the user from typing rubbish into the text area of the combobox but also allows them to clear what's in there.

    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



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