There may easily be a simpler way to do this but you could try the following pseudocode:
lcNewValue = this.text
if lcNewValue not in the list that populates the combo
insert into the list
requery the combo
set the text of the combo to lcNewValue
endif
Cheers,
Andrew
>The problem that comes is that the control source is set to a field name and what the combo box does, it search for that value in the fieldsource depending upon the boundcolumn sett. In case where we make our own entries that are not found in the list, the combo box will set the displayvalue to an empty string and display nothing!
>
>Anurag
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.