Sergey
Please enlighten me. How does this check whether the input value already exists in the look-up, before deciding to write the new value to the table? As I read it, it only checks the current value of the combo. But then again, sometimes I'm dyslexic at reading others' code :-)
Terry
>>Try
>>IF NOT EMPTY( This.DisplayValue ) ;
>> AND NOT (ALLTRIM(This.DisplayValue) == ALLTRIM(This.Value))
>> INSERT INTO mytable VALUES (This.DisplayValue)
>> This.Value = This.DisplayValue
>> THIS.Requery()
>>ENDIF
>>
>>>
>
>Thank you very much, Sergey. I will try your approach.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.