Combo Box

  • Thread starter Thread starter Clifford Thomas
  • Start date Start date
C

Clifford Thomas

How do I insert values or data in to the drop down list of the combo box. I
would like to know the step by step procedure.
 
if you have a combobox (call it say cmb_1) in a form then the following will
add "A new item" to its options:

cmb_1.additem "A New Item"

And if you wanted to add "Item 1" to "item 10"

dim i as integer
for i = 1 to 10
cmb_1.additem "Item " & i
next i

If you put this code into the form.initialize script it'll be there when you
open the form.

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top