Oh, I see. If your RowSource is a comma delimited list of values, you could try this:
** Combo.Valid()
IF NOT This.Value $ This.RowSource
cOldValue = This.DisplayValue
This.RowSource = THis.Rowsource + "," + ALLTRIM(cOldValue)
This.Requery()
This.Value = cOldValue
ENDIF
** Combo.Refresh()
DODEFAULT()
IF NOT This.Value $ This.RowSource
cOldValue = This.Value
This.RowSource = THis.Rowsource + "," + ALLTRIM(cOldValue)
This.Requery()
This.Value = cOldValue
ENDIF
Let me know if this is what you were talking about.
Marty
>>Hi Sorin,
>>
>>See FAQ #7643.
>>
>>M.
>
>The solution in FAQ 176 is not going to help when somebody comes back to this record at a future time. It will just show empty even if there is smth in the field. And I'm not prepared at this point to make anything anybody might enter in the text box a permanent value of the combo list. The list of values that are hard coded is just a list of values COMMONLY used and having them in th elist saves the user's time.
Marty Smith, CSQE