Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save text box value to combo box column

Status
Not open for further replies.

mflower

MIS
May 6, 2001
52
NZ
Anyone knows how I can save a value in a text box into one of the columns in the combo box.
Example, I'll search for a record, and the record appears in the form, but when I type in a value in textbox A, and click a button, that value is saved in the combo box. I do not want the value to be saved to a table.
Please help.Thank you..
 
Hi There

First of all you need to set up your textboxA as an unbound text box so it is not bound to any fields in your table and doesnt get saved there.

When you click on your command button you need something like this in the On_Click Event.

cboMyComboBox.Additem(textboxA.text))

Hope this helps



Bernadette
 
Thanks for that. How do u know which column to add to though, because combo boxes can have multiple columns.
Please help, if anyone knows where to get more information on how to use combo boxes preferbly step by step, let me know..thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top