>In valid event I add a value to my combobox and after that (still in the valid) I issue the following code
>
>this.Value = This.DisplayValue
>this.Requery()
>
>
Denis
You did not add anything at all
If the rowsourcetype=1
you have to use additem methid to add new item to box
Displayvalue and value are not neccesary same
For example in init of the combo you can write
this.additem('one')
this.additem('two')
etc
and this value=1
this gives correspondance of one displayvalue and value=1
Valid is not good for combo.
Try got focuss or something else
For example
in got focus you can write
this.additen('next')
this.requery()
this.displayvalue='next'
Best wishes, Vladimir
>What should I do to make this work?
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.