Combo box ListIndex to -1

  • Thread starter Thread starter Diana
  • Start date Start date
D

Diana

Guest
I have a combo box to select the company name and a search button. After the search is done I want to refresh the combo box to set the ListIndex property to -1. Any suggestion? Thanks.
 
Isn't there any code instead of the listindex -1 to do that ?
 
is the combo box bound?

if so, then changing its value will affect the current record, so its unwise to do
if not, then it will have no effect anyway

but simply

mycombobox = 0

should do what you want
 
Thanks for your reply
but the combo box is a bound to field in table and can not have null value because it is primary key
 
but if its bound, then changing it to -1 (or anything else) will set that as the value in the underlying record

why would you want to do that?
 
THIS PHOTO EXPLAIN WHAT I NEED







AND I ATTACHED MY FORM TO MAKE THE MODIFICATION
THANK YOU FOR YOUR PATIENCE
 

Attachments

Last edited:

Users who are viewing this thread

Back
Top Bottom