I rather not add the new items to the product table. Are you saying there
is no way to programmatically set combo.displayvalue?
>>I have a combobox (style=0) that has rowsource=6, rowsource=product.cproddesc,
>>controlsource=ordline.cprodesc. This allows the user to override the
>>product description and type one in if needed. When I go back to this
>>order the description they entered is not displayed in the combobox.
>>How can I make it show?
>
>Basically, if you type the new value in combo which is not in your lookup table (product) you need to add the record with this value into it. You can do it in combo.Value method. You need to compare the combo.Value and .DisplayValue properties. If they are not the same it means the value you typed is not in lookup table. Or, you can check if combo.Listindex = 0, which means the same.
>So, the code in combo.Valid() method may look like this:
>
> IF this.Listindex = 0 AND !EMPTY(this.DisplayValue)
> INSERT INTO product (cproddesc) VALUES (this.DisplayValue)
> this.Requery()
> this.Refresh()
> ENDIF
>