-
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?
-
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]