|
-
Feb 7th, 2000, 05:09 PM
#1
Thread Starter
Addicted Member
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?
-
Feb 7th, 2000, 05:44 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|