Skip to Content
author's profile photo Former Member
Former Member

Loading combo box with text box values

Hi All,

i am having a combo box and a text box...Combo box is already loaded with some static values.If i am entering any data in the text box and if i am clicking the add button, that data should also be loaded in that combo box....How to do this...?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 16, 2009 at 01:47 PM

    In the click event of the button, add this code

    dim textvalue as string

    textvalue = oform.items(itemnumber).specific.value

    ocombobox.validvalues.add(textvalue, textvalue)

    itemnumber is the uniqueid of the text box and ocombobox is the reference to the combo box.

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.