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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting text in datacombo

Status
Not open for further replies.

shootsie

Programmer
Apr 12, 2001
43
US
I am using a datacombo that is filled by records in a database query. I want to make the text of the combo box equal to a value that is not in the query so that it displays the text in the combo box, but does not allow the value to appear when they drop down the options from the combo box. I am currently trying to do this like:

cboData.text = "text value"

This line of code runs, however when I look at my combo box there is no text. Is this because the text values have to be equal to a recordset in the datacombo? If so, does anyone have any suggestions?

Thanks so much in advance, and if any more explanation is necessary please let me know.
 
quick correction, that would be:

cboText(i).text = "Text Value"

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top