add item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using additem function to add values to a combobox. This code is under
on enter function. When the user clicks on that combobox it adds some values.
But it is always adding to its current position. What i want is to delete all
the values in the combobox then add the values again..

How can I delete all the values in a combobox ?

Thanks
 
Hi, Jack.
How can I delete all the values in a combobox ?

Try syntax such as the following:

Me!cboName.RowSource = ""


HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)

- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions. Remember that the first and
best answers are often given to those who have a history of rewarding the
contributors who have taken the time to answer questions correctly.
 
Back
Top